Improvements 🔧
- Support for running PHPStan without any arguments (phpstan/phpstan-src@469a8c3)
- You can run PHPStan just by executing
vendor/bin/phpstan
, if you satisfy two conditions:- You have
phpstan.neon
(orphpstan.neon.dist
) in your current working directory - This configuration file contains rule
level
parameter, andpaths
to analyse
- You have
- You can run PHPStan just by executing
- Fix support for classes named after pseudotypes in PHPDocs (#365), thanks @stof!
- This means that existing classes with names like
Resource
orNever
are now correctly recognized in PHPDocs and have priority over PHP'sresource
type and PHPStan'snever
pseudotype
- This means that existing classes with names like
- Understand
noreturn
in PHPDoc as NeverType (phpstan/phpstan-src@bce31f0) - Docker - support ARM architecture (#4663)
Bugfixes 🐛
- Updated PHP 8 stubs (phpstan/phpstan-src@8382e35)
- Fix infinite recursion when asking
isSuperTypeOf()
between template union types (phpstan/phpstan-src@9f51f8e), #4670 - Fix generic variance with BenevolentUnionType (phpstan/phpstan-src@49dcc50), #4634
- Nested generic type - correctly infer template types (phpstan/phpstan-src@48aea56), #4642
- Fixed false positive about unreferenced template type in a parameter with nested generics (phpstan/phpstan-src@0725f5a), #4641
- Fixed class-scoped template type used as a bound in method-scoped template type (phpstan/phpstan-src@e68ca10), #4643