Improvements 🔧
- Support for generic traits and specifying template types with
@use
(phpstan/phpstan-src@8766923), #4423 - Result cache - invalidate when project extensions are edited (phpstan/phpstan-src@1e53ab6), #4691
- Make
RecursiveIterator
generic (phpstan/phpstan-src@82596f5), #4718 - Update phpstan/phpdoc-parser to 0.5 (phpstan/phpstan-src@3e1d200)
Bugfixes 🐛
- Eliminate non-generic types before inferring from unions (phpstan/phpstan-src@a1b7b38), #2575, #4130, #3623
- Calling
static::
preserves generic types (phpstan/phpstan-src@d4e0177), #3251, #2231 - Resolve
static
type in the typesystem, not in scope (#474), #4213, #4648, #3523, #3120, #1652, #4267 - Fixed handling of
static
in parameter type in implemented interfaces (phpstan/phpstan-src@d225a68), #4707, #3118 - Calling
parent::
preserves generic types (phpstan/phpstan-src@4acbc6c), #2231, #2621, #3537, #3251 - Fix: phpdoc cache collision with identical aliases & variable names (#471), thanks @rainbow-alex!
- Fixed getting class constants PHPDoc from wrong file (phpstan/phpstan-src@6d52302), phpstan/phpstan-deprecation-rules#35
- Fix default method parameter value mentioning
::class
constant (phpstan/phpstan-src@431905c), #4713, #4066 - Fix default trait method parameter mentioning constant from the using class (phpstan/phpstan-src@8babba3), #4288
- Fixed native expression type for by-ref variable after closure (#477), #4657, thanks @ruudk!
- Make functions present in functionMap but not in PhpStorm stubs known (phpstan/phpstan-src@b51a26f), #4702
- PHP 8 supports
%h
and%H
in printf/sprintf (phpstan/phpstan-src@0cbbfba), #4717 - Fix DsMapDynamicReturnTypeExtension (phpstan/phpstan-src@330eb22), #4545
- Regression tests for already solved issues (phpstan/phpstan-src@d01431c), #3558, #3351, #1843
Function signature fixes 🤖
- Fix
XMLReader::open()
return type (phpstan/phpstan-src#456), thanks @jeroennoten!