PHPStan v0.12.49 Release Notes
Release Date: 2020-10-12 // over 3 years ago-
๐ 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)
- Try out PHP 8 analysis now! Set