2.1.40 #14189
ondrejmirtes
started this conversation in
General
2.1.40
#14189
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 71 issues! 🎉
It's only been 12 days since the last release, but both @staabm and @VincentLanglet have been hard at work. For the first time ever, PHPStan has more people with merge rights aside from @ondrejmirtes, and the increase in productivity is awesome!
Improvements 🔧
rawMessageskey in ignoreErrors (#4929), thanks @VincentLanglet!count($a) == count($b)(#4470), thanks @staabm!ClassConstantReflection::isFinalByKeyword()method (#5022), Add RealClassClassConstantReflection::isFinalByKeyword() for native final class constant #14171, thanks @samsonasik!Bugfixes 🐛
GMP::toNumber(#4867), GMP operations with operator overloads give false-positive errors #12123, Detect array_sum|product array elements of castable/non-castable types #13775, thanks @VincentLanglet!Closure(#4797), Invokable objects incorrectly labeled as instances of\Closure#13975, thanks @HypeMC!match.unhandledon multiple booleans #13303, "Negated boolean expression is always true" should be reported regardless of the "Treat PHPDoc types as certain" setting #11903,non-empty-arraytype not detected when empty() condition is combined with a boolean one #7008, thanks @staabm!$thistype ofstatic(self, ...) type must remainsstatic#5946@phpstan-assertnot working with union types (#4900), @phpstan-assert isn't working with Union #11441, Narrowing type using@phpstan-assert-if-truedoesn't work with$thison abstract class #13358, thanks @staabm!@phpstan-assertnot working correctly with union types (#4920),@phpstan-assertisn't working with Union - part 2 #14108, thanks @staabm!list<mixed>becomesarray<int<0, max>, mixed>without array keys being modified (#4933),list<mixed>becomesarray<int<0, max>, mixed>without array keys being modified #13809, Unable to infer type when modifying an array #1311, non-empty-list is now displayed as non-empty-array<int<0, max>, T> after upgrade from 2.1.29 to 2.1.32 #13851, foreach-by-reference does not keeplist<T>property on reassignment #14083, Reassigning nested array values for in-out parameter does not keeplist<T>property for inner array #14084array<string, list<T>>out parameter does not see thelist<T>property during assignment (#5006), Reassigning toarray<string, list<T>>out parameter does not see thelist<T>property during assignment #14124, thanks @staabm!phpstan-assert-if-trueresult in a variable #10040, False positivemethod.nonObjectif condition checked via temporary variable #11102, Should detect value after conditional check #11870, Include previous check on null safe operator property on object #6991, PHPStan is acting weirdly with isset checks when saved into a variable #7716, thanks @staabm!issetnot narrowing down array shapes #8724, Cannot rule out types by checking for present key in array shape union #5128, Else after if (isset) on union of array shapes not narrowed #12401, thanks @VincentLanglet!strpos() !== false#13709, thanks @staabm!get_classreturn type (#4456), false positive due to method_exists call beforehand #4890, thanks @VincentLanglet!Performance 🏎️
IntersectionTypeMethodReflection->getVariants()(#5012), thanks @staabm!Function signature fixes 🤖
@param-outfor getmxrr (#4943),checkImplicitMixedreports "mixed given" on an array #10704, thanks @VincentLanglet!Internals 🔍
This discussion was created from the release 2.1.40.
Beta Was this translation helpful? Give feedback.
All reactions