- 
 
 - 
  Notifications
 
You must be signed in to change notification settings  - Fork 933
 
2.1.5 #12591
 
 
 ondrejmirtes
 
 
 
 started this conversation in
 General
 
 
 
 2.1.5
 
 #12591
 
 -
Improvements 🔧
- Hooked property cannot be static (#3810), Missing property hooks checks #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 (Allow new lines in between declarations and also allow multiline union and intersection definition for array shapes phpdoc-parser#263 ), Type parsing failes if an empty line is in between phpdoc-parser#258 , Union operator on a new line causes parsing error 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), Types usingstatic<...>in a return type are resolved against the wrong class #12575 ,@phpstan-assertis resolved too early, not working in child classes #12548 , phpstan-this-out is not taken into account for fluent interfaces #8439 , Wrong self class after calling a parent method with phpstan-self-out #8316 , Invalid return type with@return $thisand@phpstan-self-out#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 (Fixed property from interface implemented by trait Roave/BetterReflection#1487 ), False-positive in properties #12553 , thanks @kukulich!
 
 - Readonly property can override get-only property declared in interface (phpstan/phpstan-src@0c8e9d2), [PHP8.4] Readonly property overrides readwrite property (which is readonly) #12586
 
This discussion was created from the release 2.1.5.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
 
 Sign up for free
 to join this conversation on GitHub.
 Already have an account?
 Sign in to comment