Major new features 🚀
- Support literals and class constants as PHPDoc types (phpstan/phpstan-src@730a902), #2904 (see example usages)
- Support for
@mixin
(phpstan/phpstan-src@b02ee14), #2797, #1756, #466, (see PHPStan documentation)
Improvements 🔧
- Stub with
@mixin
for RecursiveIteratorIterator (phpstan/phpstan-src@2d1cac0), #1756, #466 - MissingTypehintCheck - do not report iterable template types (phpstan/phpstan-src@a7893a8)
- MissingTypehintCheck - do not report non-generic object types of generic class (phpstan/phpstan-src@a3fad5e)
Bugfixes 🐛
- ClassReflection::getConstant() - do not crash on unknown declaring class (phpstan/phpstan-src@00e3090), #3062
- Fix typos (#188), thanks @pgrimaud!
- Fix issue with different PHP-Parser version in the project (phpstan/phpstan-src@87897c2), #3224, #3186
- Fix issue with different phpstan/phpdoc-parser in the project (phpstan/phpstan-src@9a46f7f)
- Fix constant array description verbosity (phpstan/phpstan-src@1e02e9d), #3168
- More rules use the recommended type description verbosity level (phpstan/phpstan-src@d4f0907, phpstan/phpstan-src@56eadce), #3231
- Fixed __toString() return type combining with phpDoc type (phpstan/phpstan-src@db656b0), #3226
- Fixed accepting ConstantArrayType (phpstan/phpstan-src@34edb50), #3228, #3172
- Fixes related to accepting array shapes (phpstan/phpstan-src@b55208e, phpstan/phpstan-src@61cb5aa, phpstan/phpstan-src@34edb50) , #3204, #3228, #3172
Function signature fixes 🤖
- Update signature for
datefmt_create
(#189), thanks @othercorey!