Improvements 🔧
- Support for promoted properties (PHP 8)
- Support for
@return never
as an alternative toearlyTerminatingMethodCalls
andearlyTerminatingFunctionCalls
(#366, https://github.com/phpstan/phpstan-src/commit/cc91080c2fbd149d2e9f70bd2908fde78dcad5bf), thanks @b1rdex!
PHPStan\dumpType
dummy function and rule for debugging inferred types (https://github.com/phpstan/phpstan-src/commit/c24c8ef699a8cd3b73d355bfd1e7d0b0ff4fc11f)
- Updated
jetbrains/phpstorm-stubs
(https://github.com/phpstan/phpstan-src/commit/51aaf579d78e563ca84387c38ce82772bc11ffa4), #4029
Bugfixes 🐛
- Fix
ConstantArrayType::toBoolean()
(https://github.com/phpstan/phpstan-src/commit/d22abbea7882cd70346360889989649381c6adbc), #4043
- Fix
array_slice()
with mixed argument (#367), thanks @jlherren!
- Native return type
void
can be combined with PHPDoc typenever
(https://github.com/phpstan/phpstan-src/commit/1857c6cc907fee900996ada63a087cd5341b944f), #4006
ConstantArrayType::generalize()
should generalize item type too (https://github.com/phpstan/phpstan-src/commit/fc052c46cfd0c7940c3182a5b23cd2fac3dac1d7), #4056
- Result cache - export interface methods (https://github.com/phpstan/phpstan-src/commit/e36e1cd85dfe4ec22077f05ec18595cd11d87139), #4054