-
-
Notifications
You must be signed in to change notification settings - Fork 947
Errors missed on arrow functions #3660
Copy link
Copy link
Closed
Labels
Description
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.
Reactions are currently unavailable