chore(deps): update dependency phpstan/phpstan to v2 #143
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.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
1.9.14
->2.1.28
Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.1.28
Compare Source
Improvements 🔧
#[\NoDiscard]
(#4253), thanks @DanielEScherzer!l/r/trim()
arg on comparison to''
(#4340), thanks @staabm!Bugfixes 🐛
3559a4a
)79dfb6a
), #1354017c4fe5
), #13545isset()
on list (#4345), #12933, thanks @staabm!@property
should only be taken into account for protected properties and outside access when the declaring class allows dynamic properties (phpstan/phpstan-src@5772b1a
), #13537Internals 🔍
398622a
), #1349488d185c
)c0318bc
)v2.1.27
Compare Source
Bugfixes 🐛
checkDynamicProperties: true
(phpstan/phpstan-src@c657260
), #13529@property-read
is still writable inside the class (phpstan/phpstan-src@0d1fef1
), #13530@property
(phpstan/phpstan-src@439efe7
)1064566
)@property
tag subtype (phpstan/phpstan-src@0814669
)Function signature fixes 🤖
idate
identifiers (#4338), thanks @SplotyCode!Internals 🔍
b69bb4a
)c5d17f8
)v2.1.26
Compare Source
Improvements 🔧
a25b82d
)@property
tags if the native property is static (phpstan/phpstan-src@41a5ec6
)Bugfixes 🐛
90b1048
), #13381774f1ab
), #13507@property-read
with private property keeps the property non-writable (phpstan/phpstan-src@d3c6b62
), #11241@property-write
with private property keeps the property non-readable (phpstan/phpstan-src@c659f35
)Function signature fixes 🤖
idate()
return types (#4321), thanks @vrana!Internals 🔍
getProperty
/hasProperty
methods were deprecated. New methodsgetStaticProperty
/hasStaticProperty
/getInstanceProperty
/getStaticProperty
were introduced.PhpClassReflection::getProperty()
always return PhpPropertyReflection (phpstan/phpstan-src@a389320
)v2.1.25
Compare Source
Improvements 🔧
reportAlwaysTrueInLastCondition: true
(#4319), thanks @vrana!Bugfixes 🐛
c3babe1
)Function signature fixes 🤖
Internals 🔍
v2.1.24
Compare Source
Bleeding edge 🔪
rawMessage
in 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 🔧
rawMessage
key inignoreErrors
(#4111), thanks @gharlan!Bugfixes 🐛
str_increment
(phpstan/phpstan-src@e4c5865
), #1348107a010f
), #13492Function signature fixes 🤖
Redis::connect
as non-deterministic (#4318), thanks @vrana!Internals 🔍
symfony/polyfill-php83
(phpstan/phpstan-src@e4c5865
), #13481, thanks @staabm!v2.1.23
Compare 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!bool
type as too-wide when onlytrue
orfalse
is 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}
*ParameterClosureThis
extensions (#4273), thanks @calebdw!checkTooWideParameterOutInProtectedAndPublicMethods
(#4229), #12080, thanks @VincentLanglet!ReflectionProperty::setAccessible()
(#4230), thanks @staabm!d36a97f
)103d193
)f5aae9c
)array~list
asnon-empty-array
(#4225), #9734, thanks @VincentLanglet!str_increment()
instead (#4262), thanks @staabm!44deb6b
)reportAlwaysTrueInLastCondition
with 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
), #13452null
only 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 🐛
static
type 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.php
in__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_column
inference (#4201), #10367, thanks @VincentLanglet!non-empty-array
might be empty afterarray_keys()
with filter (#4295), #13377, thanks @staabm!??
(phpstan/phpstan-src@a06db02
), #11424, #10379c985b85
)71f22e7
)static
return type resolution in closure (phpstan/phpstan-src@6b9644e
, phpstan/phpstan-src@af3f105
), #1329894b6012
), #13385@phpstan-consistent-constructor
no longer requires constructor to exist (phpstan/phpstan-src@b7e305f
), #11316b6ad10a
)@phpstan-consistent-constructor
but constructor implementation is in a parent (phpstan/phpstan-src@be3c27a
), #10722Function signature fixes 🤖
RedisCluster::scan
signature (#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_*_handler
signature (#4254), #9970, thanks @VincentLanglet!Internals 🔍
instanceof *Type
checks in TypeCombinator (#4244), thanks @canvural!shouldGeneralizeInferredType
method 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
)v2.1.22
Compare Source
Improvements 🔧
Bugfixes 🐛
HasOffsetValueType
accessory missing main type (#4162, phpstan/phpstan-src@56a30c2
), #13270, thanks @staabm!array_key_exists
narrows$key
too much (#4151), #11724, thanks @staabm!Function signature fixes 🤖
stream_get_contents()
return type (#4146) (#4146), #13289, thanks @staabm!Internals 🔍
new Name()
(#4193), thanks @takaram!v2.1.21
Compare Source
Improvements 🔧
90f8b11
)Bugfixes 🐛
Internals 🔍
tmp/
(#4169), thanks @staabm!v2.1.20
Compare Source
Bugfixes 🐛
1f150cc
), #13291v2.1.19
Compare Source
Improvements 🔧
str_split()
return type (#3999), thanks @VincentLanglet!Bugfixes 🐛
IntersectionType::isIterableOnce()
(#4106), #13248, thanks @VincentLanglet!array_map
with named arguments (#3763), #12317, thanks @takaram!ObjectType::getOffsetValueType()
(#4126), #12125, #9575, #9456, #13144, thanks @VincentLanglet!property.nameNotString
(#4117), #13271ConstantArrayType::spliceArray()
(#4140), #13279, thanks @herndlm!exceptionTypeResolver
in neon (phpstan/phpstan-src@e7febc3
)Function signature fixes 🤖
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.