Skip to content

Incorrect type inference from result of array_map #1652

@marcospassos

Description

@marcospassos

Summary of a problem or a feature request

The type inference from the result of array_map seems wrong.

Code snippet that reproduces the problem

https://phpstan.org/r/b8dbc80d-ded7-42e4-9ed5-db6d8d795eb0

Expected output

No error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions