1.10.20 #9470
ondrejmirtes
started this conversation in
General
1.10.20
#9470
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Improvements 🔧
non-zero-int
type (#2449), thanks @PrinsFrank!gettype()
return type extension (#2437), thanks @staabm!Bugfixes 🐛
match
condition (phpstan/phpstan-src@0cdda0b), Match expression does not handle remaining value with an array value #4451, match expression incorrectly assumed to not handle remaining integer values #6064, Nullable boolean in match expression resolves to never after false arm #9457gettype
inmatch
condition (phpstan/phpstan-src@e4ef00c, phpstan/phpstan-src@caa0a5b), Match expression against gettype does not work as expected #8614get_class
inmatch
condition (phpstan/phpstan-src@106526d), Type inference from get_class #1885, Match expression against get_class of union type behaves wrong #8536, Match arm comparison between class-string<TypeWithGeneric<Generic>> and 'TypeWithSpecific' is always false. #8092get_class
compared withstatic::class
(phpstan/phpstan-src@590eb03), Type inference from get_class #1885gettype
when there's a union of strings on the other side (phpstan/phpstan-src@36e412f), get_class comparison doesn't pass the generic #6294, Infer template from get_class checks #2580NonEmptyArrayType::toArray()
return$this
(#2349), non-empty gets lost when non-empty-array is cast with(array)
#9208, thanks @zonuexe!array_push()
andarray_unshift()
(#2451),list<int>
is changed toarray
when usingarray_push
with variadic parameter #8449, thanks @herndlm!@var
above throw and return, change the type of expr only for the stmt callback (phpstan/phpstan-src@b551095), Internal error: NodeScopeResolver::processClosureNode() #9459Internals 🔍
Type::getFiniteTypes()
(phpstan/phpstan-src@7912caf, phpstan/phpstan-src@fa9a951, phpstan/phpstan-src@b5cf52b)This discussion was created from the release 1.10.20.
Beta Was this translation helpful? Give feedback.
All reactions