Improvements 🔧
- Support
@pure
and@phpstan-pure
annotations (#412), thanks @b1rdex! - Support
@impure
and@phpstan-impure
(#412) - It closes these issues: #3746, #3844, #4301, #2105, #929, #1826
Bleeding edge 🔪
- Detect stub file added multiple times (phpstan/phpstan-src@4a82eec)
- BooleanAndConstantConditionRule - check LogicalAnd (phpstan/phpstan-src@40a76e8)
- BooleanOrConstantConditionRule - check LogicalOr (phpstan/phpstan-src@ae9a558)
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 🐛
- Fix return type of arrow function (phpstan/phpstan-src@e9b783a), #4339
- Apply conditional expressions for non-empty arrays inside foreach (phpstan/phpstan-src@35db779), #4343
Function signature fixes 🤖
- Updated return values for
zip_open()
(#419), #4341, thanks @spud! - Updated PHP 8 stubs (phpstan/phpstan-src@d586b93)
- Improved
setcookie()
andsetrawcookie()
signatures (phpstan/phpstan-src@ccb1d4d), #4348 array_combine()
dynamicExtension (#418), thanks @VincentLanglet!array_rand()
return type extension (#417), thanks @VincentLanglet!- Update
ctype_*
function signature (#421), thanks @BackEndTea!