Improvements 🔧
- Try out PHP 8 analysis now! Set
parameters.phpVersion
in yourphpstan.neon
to80000
and re-run PHPStan to see how well your code will fare once PHP 8 is released!- It will be improved in the coming weeks to cover more deprecations and new features.
- Update phpstorm-stubs and understand
@removed
annotation (phpstan/phpstan-src@a39a46f, phpstan/phpstan-src@4eecc4f) - Implemented falsey-filtered subtracted
mixed
type (#339), #1014, thanks @jlherren!
Bugfixes 🐛
hoa/Stream.php
- remove registerShutdownFunction (phpstan/phpstan-src@edd5c3c), #3907- DependencyResolver - get current function reflection instead of obtaining it through ReflectionProvider (phpstan/phpstan-src@0e42941), #3909
- More useful behaviour of "some jobs remaining" (phpstan/phpstan-src@6c61e49, phpstan/phpstan-src@34c4829), #3910
- Fix type-less variadic argument in anonymous function (#332), thanks @jlherren!
- Fix native union type parameter with
false
(phpstan/phpstan-src@917cdb1) - Fix native union type with incomplete PHPDoc (phpstan/phpstan-src@c3d0989)
- Fix type inference in assignment with side-effects (#333), #3875, #2611, #3548, thanks @jlherren!
- Fix JustNullableTypeTrait.equals() (#335), #3866, thanks @jlherren!
- Fix variadic parameter after optional (phpstan/phpstan-src@287b8b8)
- Fix reporting overriden variadics (phpstan/phpstan-src@2cd7001)
Function signature fixes 🤖
- make second two arguments optional in
mysqli_begin_transaction
(#331), thanks @MasterOdin! PHPStan\Reflection\ClassReflection::getName()
returnsclass-string
(phpstan/phpstan-src@3d1d930)- Fix
Memcache::get
signature (#338), thanks @dada-amater! - Handle dynamic return types for bc math functions (#187), thanks @eigan!
- First parameter of
SimpleXMLElement::children()
accepts null (phpstan/phpstan-src@7ce2e54) - functionMap - synchronized some of parameter names with PHP 8 stubs (phpstan/phpstan-src@71e7550, phpstan/phpstan-src@0c87f16)
- Dynamic return type extension for
pow()
(phpstan/phpstan-src@c54e495)