Improvements 🔧
- Allow empty array shape (phpstan/phpstan-src@d36852a), #5159
- ClassReflection: option to make
getTraits()
recursive (#557), thanks @IAmRGroot! - Update BetterReflection with some performance optimizations (phpstan/phpstan-src@dce3c85)
Bleeding edge 🔪
- Array functions stubs (#555), thanks @BackEndTea!
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. Learn more
Bugfixes 🐛
- Revert "InstalledVersions.php no longer needs to be whitelisted" (phpstan/phpstan-src@b902c38), #5157
- Fix evaluating match arm conditions (phpstan/phpstan-src@7acf7ca), #5161
never
return type in PHPDoc wins over native type (phpstan/phpstan-src@2c976fb), #5089ClosureType
typeOnly description is justClosure
(phpstan/phpstan-src@476520d), #5164- NonexistentOffsetInArrayDimFetchCheck - be less strict about
BenevolentUnionType
(phpstan/phpstan-src@2abb92e), #5169 - ClosureType and CallableType - infer template types from callable parameters properly (phpstan/phpstan-src@efa6aa6, phpstan/phpstan-src@01f99c1), #3158