Update dependency phpstan/phpstan to v2 #7
+1
−1
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:
^1.12
->^2.0
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 🐛
isset()
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 🔍
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)@property
tag subtype (phpstan/phpstan-src@0814669)Function signature fixes 🤖
idate
identifiers (#4338), thanks @SplotyCode!Internals 🔍
v2.1.26
Compare Source
Improvements 🔧
@property
tags if the native property is static (phpstan/phpstan-src@41a5ec6)Bugfixes 🐛
@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 🐛
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), #13481Function 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!array~list
asnon-empty-array
(#4225), #9734, thanks @VincentLanglet!str_increment()
instead (#4262), thanks @staabm!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), #12645new 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), #13424FILTER_*
constants redeclared with wrong type (#4199), #10483, #10661, thanks @VincentLanglet!vendor/hoa/protocol/Wrapper.php
in__composer_autoload_files
(#4275), #13369@phpstan-assert
(#4226), #9435, thanks @VincentLanglet!ConstantFloatType::toString
(#4278), #12225, thanks @VincentLanglet!ArrayType::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, #10379static
return type resolution in closure (phpstan/phpstan-src@6b9644e, phpstan/phpstan-src@af3f105), #13298@phpstan-consistent-constructor
no longer requires constructor to exist (phpstan/phpstan-src@b7e305f), #11316@phpstan-consistent-constructor
but constructor implementation is in a parent (phpstan/phpstan-src@be3c27a), #10722Function signature fixes 🤖
RedisCluster::scan
signature (#4195), thanks @DKhalil!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!PhpFunctionFromParserNodeReflection::isMethodOrPropertyHook()
(phpstan/phpstan-src@2c53ed6), #13393$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 🔧
Bugfixes 🐛
Internals 🔍
tmp/
(#4169), thanks @staabm!v2.1.20
Compare Source
Bugfixes 🐛
v2.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 🤖
stream_filter_*
signatures (#4125), #12380, thanks @VincentLanglet!Internals 🔍
#[RequiresPhp]
attribute rule (#4127), thanks @takaram!dumpNativeType
(#4108), thanks @VincentLanglet!v2.1.18
Compare Source
Bleeding edge 🔪
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 🔧
@phpstan-sealed
support (#4095), thanks @VincentLanglet!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 has been generated by Renovate Bot.