PHPStan v0.12.20 Release Notes
Release Date: 2020-05-03 // almost 4 years ago-
๐ฑ 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!