Major new feature 🚀
Local type aliases
Thanks to @jiripudil and his PR phpstan/phpstan-src#460, you can now enjoy @phpstan-type
and @phpstan-import-type
in class-level PHPDoc. See the documentation for more details.
Improvements 🔧
- Add
AlwaysUsedClassConstantsExtension
interface (#495), #4859, thanks @jdecool! - Remove unnecessary dependencies (phpstan/phpstan-src@2cd7a03)
Bugfixes 🐛
unlink()
also clears stat cache (phpstan/phpstan-src@63d0670), #4797- Named arguments - fix optional arguments and variadics (phpstan/phpstan-src@3e5621e), #4800
- Fix
Closure::bind()
(phpstan/phpstan-src@566b44b), #4808 - Fix CatchWithUnthrownExceptionRule for
new $expr()
(phpstan/phpstan-src@8463afd), #4806 - Fix CatchWithUnthrownExceptionRule for
$expr::foo()
(phpstan/phpstan-src@8c7cf85), #4805 - Allow autoloaders to
require
/require_once
for #4836 via a fake read (#491), thanks @rrazor! - Get closer to how type inference in TypeScript works (phpstan/phpstan-src@3be90f0), #4803
- Fix throwpoint in elseif condition (phpstan/phpstan-src@fb62e5e)
- Fix excessive memory usage (phpstan/phpstan-src@7c0146c), #4815
Function signature fixes 🤖
- Update XSLTProcessor::transformToXML signature (#492), thanks @jawira!
- Update
rediscluster
inspections (#493), thanks @sudo-plz! - Fix
array_sum
return type (#494), thanks @VincentLanglet! - Fix wrong IntlDateFormatter format signature (#496), thanks @alfredbez!