2.2.2 #14771
ondrejmirtes
started this conversation in
General
2.2.2
#14771
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.
-
Improvements 🔧
preg_match/preg_match_allsubject string type when match is truthy (#5777), narrow types when using ternary on preg_match #14710, thanks @staabm and @VincentLanglet!int<0, max>(#5791), Variadic argument's type can be narrowed #14744, thanks @staabm and @VincentLanglet!WithoutImpurePointspurity transitively through calls to other effect-free callables (#5798), These collectors could work transitively #14759decimal-int-string/non-decimal-int-stringfor regex capturing groups matching (non-)digits (#5793), Supportdecimal-int-stringin regex matching #14750, thanks @staabm, @VincentLanglet and @mvorisek!decimal-int-stringwhen castingint/int<a, b>tostring(#5794), Supportdecimal-int-stringin string cast #14753, thanks @staabm and @VincentLanglet!Bugfixes 🐛
BooleanAnd/BooleanOrtype specifier with truthy fallback forisset()(#5760), False positive #10644, Track/narrow types of the values of of maybe-set array keys #11918, False positive when object === null is excluded via XOR #3385, False Positive: Optional array key with type constraint remaines "mixed" (checkExplicitMixed) #6202, missing has-offset via conditional type #14455, thanks @VincentLanglet and @staabm!@phpstan-ignoreare ignored in traits since v2.2.0 #14718, thanks @janedbal!ComposerJsonAndInstalledJsonSourceLocatorMaker::prefixPaths()#14724, thanks @staabm!HasOffsetTypeviaArrayType::tryRemove(#5756), array_key_exists does not narrow the same key definitively unset #9461, thanks @VincentLanglet and @staabm!ConstantArrayType::tryRemoveforHasOffsetValueType(#5776), ConstantArrayType::tryRemove incorrectly handle HasOffsetValueType #14711, thanks @VincentLanglet and @staabm!readonlyproperty in__clone#11495, thanks @grizzm0!array-key(phpstan/phpstan-src@49074ec), Unsealed array shape is dumped too complex when simplified since v2.2.0 #14732list<mixed>fromPDOStatement::fetchAll()(T of object not working #5643)" (#5795), thanks @staabm!@throwsas not effect-free in theCallTo*StatementWithoutImpurePointsRulefamily (#5802), CallToConstructorStatementWithoutImpurePointsRule does not see@throwsabove called constructor #14767Function signature fixes 🤖
false/null(#5788), Function signature: xdebug's xdebug_get_profiler_filename can return false : PHPStan 2.1.56 thinks otherwise #14736Internals 🔍
instanceof ConstantStringType(#5783), thanks @staabm!instanceof ConstantScalarType(#5785), thanks @staabm!getConstantScalarTypes()togetConstantScalarValues()(#5786), thanks @staabm!return(phpstan/phpstan-src@1643f14)This discussion was created from the release 2.2.2.
Beta Was this translation helpful? Give feedback.
All reactions