Improvements 🔧
- Infer return type of anonymous functions from the return statements (https://github.com/phpstan/phpstan-src/commit/96750b5acdc17b959ed08f8d0278cf5720c82113), #3115, #3091, #2576
Bugfixes 🐛
- Fix ClosureReturnStatementsNode to not contain statements from nested closures and anonymous functions (https://github.com/phpstan/phpstan-src/commit/a81a8c3870b119ee15accfb549caa5f9c163d8c5)
- Fix FunctionReturnStatementsNode to not contain statements from nested closures and anonymous functions (https://github.com/phpstan/phpstan-src/commit/c70325b4a48039ac84deb457417fc14d0bb97eaf)
- Fix MethodReturnStatementsNode to not contain statements from nested closures and anonymous functions (https://github.com/phpstan/phpstan-src/commit/9a99aa5472a8a757b10c8ce32e275f304aeed85c)