Bug report
When I pass the mapping function as first class callable, phpstan probably incorrectly evaluates it's return type.
Code snippet that reproduces the problem
https://phpstan.org/r/eaa6cfdb-7500-441e-935b-521a9ec0ea3e
Expected output
Both statements should lead to the same output
Did PHPStan help you today? Did it make you happy in any way?
No response