Improvements 🔧
- StubValidator - do not check missing callable signatures (https://github.com/phpstan/phpstan-src/commit/b7d60809dd3c1fed00dde616df6c6946c7da118d)
Bleeding edge 🔪
- Detect wrong usage of
@var
PHPDoc tag (level 2) (https://github.com/phpstan/phpstan-src/commit/58860536dcc60bfc86c29ad67711ed1b19046cb0)
- Check array deconstruction (level 3) (https://github.com/phpstan/phpstan-src/commit/aae34d935081a8f8d34f5bd9bdf50ebdfdb85a7e), #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 (https://github.com/phpstan/phpstan-src/commit/8633000546eb2005387774f1a76db5f5686cf084), #4514
- Fixed local ignoring using annotations in traits (https://github.com/phpstan/phpstan-src/commit/785b66311ed7591710b189322c7d71fcfa1c3409), #4513
- Updated PHP 8 stubs (https://github.com/phpstan/phpstan-src/commit/cc9a674016c2ec580343db6185621f1d607aca97), #4519
SplObjectStorage
's ArrayAccess will never return null (https://github.com/phpstan/phpstan-src/commit/60624379b08831444b326f5eb688d5db87937964), #4436
- Resolve unknown generic type to bound instead of ErrorType (https://github.com/phpstan/phpstan-src/commit/6ef87d1d1f1065fd980aa01ccda70cb6280f32dc)
- Fixed assigning generic object without a constructor (like
SplObjectStorage
) to a property (https://github.com/phpstan/phpstan-src/commit/2017318c316861d6d6ec3d5c0f1a598e04767f96), #3777
Function signature fixes 🤖
- Avoid false positive for namespaced Xpath (#447), thanks @VincentLanglet!