Improvements 🔧
- StubValidator - do not check missing callable signatures (phpstan/phpstan-src@b7d6080)
Bleeding edge 🔪
- Detect wrong usage of
@var
PHPDoc tag (level 2) (phpstan/phpstan-src@5886053) - Check array deconstruction (level 3) (phpstan/phpstan-src@aae34d9), #3267
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon
:
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included.
Bugfixes 🐛
- PHP 8 - fix signatures with multiple variants (phpstan/phpstan-src@8633000), #4514
- Fixed local ignoring using annotations in traits (phpstan/phpstan-src@785b663), #4513
- Updated PHP 8 stubs (phpstan/phpstan-src@cc9a674), #4519
SplObjectStorage
's ArrayAccess will never return null (phpstan/phpstan-src@6062437), #4436- Resolve unknown generic type to bound instead of ErrorType (phpstan/phpstan-src@6ef87d1)
- Fixed assigning generic object without a constructor (like
SplObjectStorage
) to a property (phpstan/phpstan-src@2017318), #3777
Function signature fixes 🤖
- Avoid false positive for namespaced Xpath (#447), thanks @VincentLanglet!