Improvements 🔧
@mixin
above classes with__callStatic()
creates static methods (https://github.com/phpstan/phpstan-src/commit/aa38695f3790b4984e0d60301f4b0ef32eb9578f), #3641
- Detect cache saving error (https://github.com/phpstan/phpstan-src/commit/542238a6e8a1f9af328736f9232e2744e0d69e4c), #3638
- Updated nikic/php-parser to 4.7.0 (https://github.com/phpstan/phpstan-src/commit/5a3deae451ced207901bf707c81152e6bf9a1b55)
- Improved PHP 8 compatibility after Treat namespaced names as single token RFC got merged into php-src
Bugfixes 🐛
- Handle
yield
in for loop, foreach loop, while loop, do-while loop, if condition, switch statement (#286), thanks @dantleech!
- Fix missing method
Generator::throw()
(https://github.com/phpstan/phpstan-src/commit/153c874ad7f533e7da5f5af4d55c2839494d3754), #3683, #3418
- Fix anonymous class with PHPDoc (#283), #3661, thanks @dbrekelmans!