Improvements 🔧
- AnalyseApplication: Do not re-analyse stubs on every run (#730), #5826, thanks @dktapps!
- Add shorthand for
--generate-baseline
(-b
) (#980), thanks @Seldaek! - Support narrowing down
array_filter()
return type via string callable (#938), #6417, thanks @herndlm! - Loop optimization (#757), thanks @ging-dev!
Bugfixes 🐛
- Fixed level 9 issues (phpstan/phpstan-src@9f12f0f), #6423, #6464, #6236, #6418, #6118, #6081, #6053, #6055, #5860, #6230
- Cast PHPDoc array key type with array key casting rules (phpstan/phpstan-src@5d17b84), #6117
- Support closure bind with class-string (#706), #4949, thanks @mvorisek!
- Fix
NeverType::toBoolean()
(phpstan/phpstan-src@fe3a341), #6258 - Fix
DatePeriod
constructor extension in subclasses (phpstan/phpstan-src@0c82b3a), #6500 - Forget remembered specific type when entering arrow function with same-named parameter (phpstan/phpstan-src@af38f03), #6473
- Fix segfault (phpstan/phpstan-src@d101764), #6501
Function signature fixes 🤖
- More precise
array_chunk
signature (#709), thanks @staabm! - Narrow the type for the
preg_replace_callback()
callable. (#758), thanks @johnbillion! - Update return types for hash functions (#822), thanks @jlherren!
- Fix type for
array_splice()
argument$replacement
(#901), #6288, thanks @spawnia! stream_bucket_new
returns an object (#968), thanks @mind-bending-forks!- More precise signatures for
mb_*
functions (#717), thanks @staabm! - Fix
array_column()
withnull
as$column_key
(#970), thanks @jlherren!