fix(deps): update dependency phpstan/phpstan to v2.1.25#131
Merged
ondrejmirtes merged 1 commit intomainfrom Sep 15, 2025
Merged
fix(deps): update dependency phpstan/phpstan to v2.1.25#131ondrejmirtes merged 1 commit intomainfrom
ondrejmirtes merged 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.1.22->2.1.25Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.1.25Compare Source
Improvements 🔧
reportAlwaysTrueInLastCondition: true(#4319), thanks @vrana!Bugfixes 🐛
c3babe1)Function signature fixes 🤖
Internals 🔍
v2.1.24Compare Source
Bleeding edge 🔪
rawMessagein baseline generators (#4317), thanks @gharlan!If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's
phpstan.neon:Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
rawMessagekey inignoreErrors(#4111), thanks @gharlan!Bugfixes 🐛
str_increment(phpstan/phpstan-src@e4c5865), #1348107a010f), #13492Function signature fixes 🤖
Redis::connectas non-deterministic (#4318), thanks @vrana!Internals 🔍
symfony/polyfill-php83(phpstan/phpstan-src@e4c5865), #13481, thanks @staabm!v2.1.23Compare Source
Whopping 88 issues were solved in this release! @VincentLanglet and @staabm are the true GOATs here.
Bleeding edge 🔪
BcMath\Number(#3995), #13001, thanks @schlndh!booltype as too-wide when onlytrueorfalseis assigned (#4243), #13384, thanks @staabm!If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's
phpstan.neon:Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Improvements 🔧
array{Foo::BAR: int}*ParameterClosureThisextensions (#4273), thanks @calebdw!checkTooWideParameterOutInProtectedAndPublicMethods(#4229), #12080, thanks @VincentLanglet!ReflectionProperty::setAccessible()(#4230), thanks @staabm!d36a97f)103d193)f5aae9c)array~listasnon-empty-array(#4225), #9734, thanks @VincentLanglet!str_increment()instead (#4262), thanks @staabm!44deb6b)reportAlwaysTrueInLastConditionwith enums (#4286), thanks @vrana!TypeCombinator::unionWithSubtractedType(#4200), thanks @VincentLanglet!curl_getinfo()return types (#4279), thanks @FeBe95!ReflectionClass<covariant X>even on PHP 8.3- (phpstan/phpstan-src@9435151), #13452nullonly for native properties without native type (phpstan/phpstan-src@802fa6e), #11609??condition (phpstan/phpstan-src@9e24fa2), #1264566af941)new static()arguments when paired with@phpstan-consistent-constructor(phpstan/phpstan-src@4274cfb)Bugfixes 🐛
statictype in method@throws(#4128), #11900, thanks @VincentLanglet!Type::getProperty()before making sureType::hasProperty()is yes (phpstan/phpstan-src@3beb667), #134246bf3ce7), #13123c5d7128), #13163FILTER_*constants redeclared with wrong type (#4199), #10483, #10661, thanks @VincentLanglet!cd6b3fd)vendor/hoa/protocol/Wrapper.phpin__composer_autoload_files(#4275), #13369@phpstan-assert(#4226), #9435, thanks @VincentLanglet!ConstantFloatType::toString(#4278), #12225, thanks @VincentLanglet!e8b3111), https://redirect.github.com/phpstan/phpstan/discussions/13395b042caa), #13411ArrayType::hasOffsetValueType()(#4288), #13455, thanks @staabm!array_columninference (#4201), #10367, thanks @VincentLanglet!non-empty-arraymight be empty afterarray_keys()with filter (#4295), #13377, thanks @staabm!??(phpstan/phpstan-src@a06db02), #11424, #10379c985b85)71f22e7)staticreturn type resolution in closure (phpstan/phpstan-src@6b9644e, phpstan/phpstan-src@af3f105), #1329894b6012), #13385@phpstan-consistent-constructorno longer requires constructor to exist (phpstan/phpstan-src@b7e305f), #11316b6ad10a)@phpstan-consistent-constructorbut constructor implementation is in a parent (phpstan/phpstan-src@be3c27a), #10722Function signature fixes 🤖
RedisCluster::scansignature (#4195), thanks @DKhalil!864e4f6)Exception::getTrace()return type (#4264), thanks @keradus!SimpleXMLElement::offsetSet(#4196), thanks @VincentLanglet!RedisCluster::multi()return type (#4283), #13392, thanks @sayuprc!xml_*_handlersignature (#4254), #9970, thanks @VincentLanglet!Internals 🔍
instanceof *Typechecks in TypeCombinator (#4244), thanks @canvural!shouldGeneralizeInferredTypemethod from template type classes (#4269), thanks @SplotyCode!6238750)PhpFunctionFromParserNodeReflection::isMethodOrPropertyHook()(phpstan/phpstan-src@2c53ed6), #13393dcda566), #7824, #108193380dc5), #9204ecfd995)7870d2d), #131350e706b3), #4532305e592), #10492bfa860e), #8668e4eae3b)$constructor instanceof PhpMethodReflection(phpstan/phpstan-src@85fd1a4)Configuration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.