PHPStan v0.12.54 Release Notes
Release Date: 2020-11-05 // over 3 years ago-
👌 Improvements 🔧
- 👌 Support for promoted properties (PHP 8)
- 👌 Support for
@return never
as an alternative toearlyTerminatingMethodCalls
andearlyTerminatingFunctionCalls
(#366, phpstan/phpstan-src@cc91080), thanks @b1rdex! PHPStan\dumpType
dummy function and rule for debugging inferred types (phpstan/phpstan-src@c24c8ef)- ⚡️ Updated
jetbrains/phpstorm-stubs
(phpstan/phpstan-src@51aaf57), #4029
🛠 Bugfixes 🐛
- 🛠 Fix
ConstantArrayType::toBoolean()
(phpstan/phpstan-src@d22abbe), #4043 - 🛠 Fix
array_slice()
with mixed argument (#367), thanks @jlherren! - Native return type
void
can be combined with PHPDoc typenever
(phpstan/phpstan-src@1857c6c), #4006 ConstantArrayType::generalize()
should generalize item type too (phpstan/phpstan-src@fc052c4), #4056- Result cache - export interface methods (phpstan/phpstan-src@e36e1cd), #4054