0.12.69
Improvements 🔧
- The PHAR is present only once in
phpstan/phpstan
distribution (#4390), thanks @mvorisek! - ComposerJsonAndInstalledJsonSourceLocatorMaker - optimized memory consumption for many autoloaded files (phpstan/phpstan-src@e4b6ffd), #4401
- Optimized caching of
isSuperTypeOf()
inObjectType
(phpstan/phpstan-src@e88491b) - Unification for working with current class reflection (like
self::
) across CallStaticMethodsRule, ClassConstantRule, AccessStaticPropertiesRule (phpstan/phpstan-src@863e6c6), composer/composer#9635 - New feature - require specifying
callable
signatures in PHPDocs: turn on withcheckMissingCallableSignature
parameter (off by default) (phpstan/phpstan-src#430), thanks @dktapps!
Bugfixes 🐛
- Fixed preserving non-empty array in
array_reverse()
(phpstan/phpstan-src@3ccc152), #4398 - OPENSSL_VERSION_NUMBER is a dynamic constant name (phpstan/phpstan-src@c865bc3)
- IteratorAggregate - read key and value type from generics if
getIterator()
doesn't have PHPDoc type (phpstan/phpstan-src@c75b0ea), #4415 - Inline
@var
above property should not pollute scope inside methods (phpstan/phpstan-src@e832df4), #4412 - Infer return type
never
from closure (phpstan/phpstan-src@98c8dd6), #4416 - Fix excluding files when excludePaths.analyse and excludePaths.analyseAndScan are used at the same time (phpstan/phpstan-src@09e4fbe), #4417
- VoidType::accepts - support CompoundType (phpstan/phpstan-src@8b4cab5)