Improvements 🔧
- Infer parameter types in arrow functions (phpstan/phpstan-src@8fdc2d3), #4902, #3660, #4083, #4681
- Use the same
php.ini
in child workers (#559), thanks @yangchaobj! strval()
dynamic return type extension (#568), thanks @jlherren!- Type cast fixes, add tests for
intval()
,boolval()
,floatval()
(#570), #4848, #5162, thanks @jlherren! next()
dynamic return type extension (phpstan/phpstan-src@599f59b), #5253- Update
nikic/php-parser
to 4.11.0 (phpstan/phpstan-src@e42ae89)
Bugfixes 🐛
- ConstantArrayTypeBuilder - preserve non-emptiness in generalized array (phpstan/phpstan-src@427b73d), #5219, #4829, #4844
- Support
object
forReflectionClass
andReflectionMethod
constructor throw types (#566), #5195, thanks @VincentLanglet! - Fix for: Optional array key is not recognized with
!empty
(#569), #3784, #3700, #3297, thanks @ArtemGoutsoul!