Skip to content

Errors missed on arrow functions #3660

@nicofff

Description

@nicofff

Bug report

Under some circumstances, the same implementation using anonymous functions will detect an issue, but if arrow functions are used, it won't.

Code snippet that reproduces the problem

https://phpstan.org/r/8dd5b2a8-e742-4577-b00a-b2bfc72184d5

Expected output

I'd expect both array_map's to raise the same issue, since the code is equivalent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions