Improvements 🔧
- Infer return type of anonymous functions from the return statements (phpstan/phpstan-src@96750b5), #3115, #3091, #2576
Bugfixes 🐛
- Fix ClosureReturnStatementsNode to not contain statements from nested closures and anonymous functions (phpstan/phpstan-src@a81a8c3)
- Fix FunctionReturnStatementsNode to not contain statements from nested closures and anonymous functions (phpstan/phpstan-src@c70325b)
- Fix MethodReturnStatementsNode to not contain statements from nested closures and anonymous functions (phpstan/phpstan-src@9a99aa5)