2.1.5
Improvements 🔧
- Hooked property cannot be static (#3810), #12336, thanks @jakubtobiasz!
- Array shape from general array with single finite key (phpstan/phpstan-src@6c45175, phpstan/phpstan-src@8a5bfb9)
- Allows
array<value-of<MyEnum::FIRST>, X>to create an array shape where the key is backed enum case value
- Allows
- Update phpdoc-parser (phpstan/phpstan-src@d25a815)
- TypeParser: Allow multiple newlines and also allow multiline union and intersection types for array shapes (phpstan/phpdoc-parser#263), phpstan/phpdoc-parser#258, phpstan/phpdoc-parser#183, thanks @DaDeather!
Bugfixes 🐛
- This release includes fixes from PHPStan 1.12.18
- Fix
GenericStaticTypein@phpstan-self-out, use@phpstan-self-outtype when returning$this(phpstan/phpstan-src@dab99cb), #12575, #12548, #8439, #8316, #8275 - Fix
@phpstan-self-outwith GenericStaticType when method is called on$this(phpstan/phpstan-src@cf64761) - Update BetterReflection (#3822)
- Fixed property from interface implemented by trait (Roave/BetterReflection#1487), #12553, thanks @kukulich!
- Readonly property can override get-only property declared in interface (phpstan/phpstan-src@0c8e9d2), #12586