phpstan-src
phpstan-src copied to clipboard
Fix Closure::fromCallable and first-class callables not propagating templates.
Also improves the array_map return type extension to be smarter about generic callables, specifically for single argument constant arrays.
This improves the situation of https://github.com/phpstan/phpstan/issues/10685 but i hesitate to say it solves it, there are some underlying issues that i'll add to the relevant test locations on this pr