2.1.52 #14540
ondrejmirtes
started this conversation in
General
2.1.52
#14540
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This release fixes 45 issues! 🎉
Improvements 🔧
Assignnode forList_destructuring inforeachvalue position (#5504), Array destructuring of item in foreach is not properly checked #8075foreachloop (#5505), Remember type narrowing outside of a foreach loop when the narrowing happens inside the loop #7076static::SOME_CONSTin PHPDoc (#5510), Reference to static const behaves as self const #13828, thanks @VincentLanglet!Bugfixes 🐛
Comparison operation ">" between int<1, max> and 0 is always true.on non simple array unset #11146, Foreach to check the type of array is not taken into account #11533, Cannot access offset in array with condition #13699, Array offset exists false positive #13623, property_exists cannot narrow type when property is a union #13304, Flag manipulation and array value substitution within a loop causes unintended type #12653, Support looping over array_key_exists with a list of keys #3795, assign any-int in a loop should turn list into array #14336, missing type narrowing ofissetin loop #11820, Help phpstan understand what shape array has been created when looping over an array with known shape #13000, Refining array type in loops only works for the first iteration #13643, dynamic function names (as variables) not recognizes in certain cases #13272, Array type incorrectly adjusted in loop scenario #13663, Binary operation: only first operation in a loop gets flagged + two more issues #10349, Cannot assign new offset to array #8648ConditionalTypeForParameterchildren before converting toConditionalTypeto prevent infinite traversal (#5507), PHPStan goes OOM on specific class #13872?->method call to account for argument short-circuiting (#5456), Nullsafe operator short-circuits argument evaluation (false negative) #10729, thanks @VincentLanglet and @staabm!ExportedParameterNodefor result cache invalidation (#5518), Missing result cache invalidation after modifying the @var annotation associated to a promoted property #14520$valuein foreach (#5526)array_merge/array_replace(#5525), Wrong assumption about array_merge result #14526Cannot call method getId() on A|null#9455, False positive when a check is done with a boolean variable instead of directly in the if. #5207||truthy, Track destructure relationships across tagged-union foreach (#5531), Moving (instanceof A || instanceof B) from if statement causes error #9519generics.notSubtypeif a type defined by @phpstan-type is used to limit the generic type #13332, thanks @VincentLanglet and @staabm!$arr[$key]existence acrossarray_key_first/last+!== null(#5537)Performance 🏎️
Function signature fixes 🤖
Internals 🔍
This discussion was created from the release 2.1.52.
Beta Was this translation helpful? Give feedback.
All reactions