chore(deps): update phpstan packages #189
Open
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.9.*@dev
->1.10.*@dev
1.4.*@dev
->1.5.*@dev
3.1.*@dev
->3.2.*@dev
Release Notes
phpstan/phpstan (phpstan/phpstan)
v1.10.60
Compare Source
Learn more about this release in an article on phpstan.org!
Major new features 🚀
@method
tags:@method T doFoo<T>(T $p)
, #6371callable<T>(T): T
, #8964Bleeding edge 🔪
reportAnyTypeWideningInVarTag
(#2840), thanks @janedbal!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 🔧
Bugfixes 🐛
$a?->b::c()
and$a?->b::$c
(#2933), thanks @schlndh!fn() => __FUNCTION__
and__METHOD__
(#2934), thanks @schlndh!T of mixed&Foo
andT of mixed|Foo
(#2940), thanks @schlndh!isSuperTypeOf
of callable/Closure when parameter count differ (#2949), #10594, thanks @takaram!Function signature fixes 🤖
ReflectionFunctionAbstract::getExtension
return type (phpstan/phpstan-src@2ece1f8)date_sun_info()
function (#2947), thanks @zonuexe!mysqli get_warnings
(#2929), thanks @janedbal!Internals 🔍
Type::isNull()
inNullsafe(MethodCall|PropertyFetch)Rule
(#2942), thanks @takaram!v1.10.59
Compare Source
Bleeding edge 🔪
array_values
rule (report when alist
type is always passed in) (#2917), thanks @kamil-zacek!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 🔧
treatPhpDocTypesAsCertain
(phpstan/phpstan-src@f5b198c)settype()
(#2920), thanks @ChrisBrenton!Bugfixes 🐛
Internals 🔍
FunctionReflection::isPure()
andExtendedMethodReflection::isPure()
(phpstan/phpstan-src@03d01ea)v1.10.58
Compare Source
Improvements 🔧
unset
(phpstan/phpstan-src@aeadbe2), #10506, #6773Bugfixes 🐛
@phpstan-require-extends
(#2890), #10475, thanks @RobertMe!sort()
,rsort()
andusort()
convert an array to list (#2891), #6467, #10423, #3312, thanks @takaram!T<X>
whereT
bound consist of intersection type (phpstan/phpstan-src@778b569), #10509[1 => 'method', 0 => $obj]
as callable (#2896), #10502, thanks @staabm!@phpstan-assert
PHPDoc inheritance with generics (#2909), #10037, #9123, thanks @RobertMe!Internals 🔍
isSuperTypeOf()
calls (#2895), thanks @staabm!ClassPropertiesNode->getUninitializedProperties()
(#2899), thanks @staabm!v1.10.57
Compare Source
Bleeding edge 🔪
mixed
type based on config (#2885), thanks @schlndh!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 🔧
ClassReflection::getConstant()
return type (phpstan/phpstan-src@8d4ea60)ClassConstantReflection
with BC promise (phpstan/phpstan-src@8f82b79)Bugfixes 🐛
array_filter
callback return type (phpstan/phpstan-src@59ae706)@template
type in method call (phpstan/phpstan-src@11268e5), #10473Function signature fixes 🤖
curl_multi_init()
cannot return false (#2882), thanks @staabm!error_log()
is impure (#2884), thanks @staabm!v1.10.56
Compare Source
Major new feature 🚀
@phpstan-require-extends
,@phpstan-require-implements
, #10302, #9899, #8550, thanks @staabm!@property
PHPDoc above interfaces work on PHP 8.2+Improvements 🔧
Bugfixes 🐛
match
arm condition before analysing the body (phpstan/phpstan-src@2b74aa8), #10418Function signature fixes 🤖
Yaf_Response_Http::__clone
(#2863), thanks @PrinsFrank!transliterator::listIDs
return type (#2865), thanks @PrinsFrank!strtok()
always returns anon-empty-string
when it does not return false (#2869), thanks @staabm!Internals 🔍
Type::getConstantArrays()
(#2864), thanks @staabm!Scope::getFunctionType()
(#2872), thanks @staabm!v1.10.55
Compare Source
Improvements 🔧
@phpstan-ignore-next-line
works for first line below the PHPDoc even in bleeding edge (phpstan/phpstan-src@8b6260c), #10383, https://github.com/phpstan/phpstan/discussions/10374open-resource
type (phpstan/phpstan-src@bbd9a68), #10399Bugfixes 🐛
Internals 🔍
@phpstan-require-extends
and@phpstan-require-implements
(#2856), thanks @staabm!Scope::getFunctionCallStack()
(phpstan/phpstan-src@9be1376), https://github.com/phpstan/phpstan-deprecation-rules/issues/106v1.10.54
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 🔧
Bugfixes 🐛
v1.10.53
Compare Source
Improvements 🔧
str_increment
/str_decrement
return type extension (#2776), thanks @zonuexe!Bugfixes 🐛
array_udiff()
comparator return type is too strict (#2822), #9697, thanks @staabm!Internals 🔍
v1.10.52
Compare Source
Improvements 🔧
Bugfixes 🐛
v1.10.51
Compare Source
Bleeding edge 🔪
RecursiveIteratorIterator::__construct()
parameter types (#2835), 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 🔧
Bugfixes 🐛
ReflectionEnum::getBackingType()
afterReflectionEnum::isBacked()
(#2830), #10167, thanks @staabm!??
type inference (phpstan/phpstan-src@d801919), #10327Internals 🔍
ondrejmirtes/simple-downgrader
str_starts_with()
andstr_contains()
instead ofstrpos()
(#2841), thanks @zonuexe!ParametersAcceptorSelector::combine()
(#2851), thanks @staabm!v1.10.50
Compare Source
Improvements 🔧
nikic/php-parser
to 4.18.0 (phpstan/phpstan-src@24f92cc)Bugfixes 🐛
VoidType
- acceptnull
(phpstan/phpstan-src@40c8fb2), #10291Internals 🔍
InvalidPromotedPropertiesRule
- useFunctionLike
as node type (#2823), thanks @paulbalandan!v1.10.49
Compare Source
Bleeding edge 🔪
GenericObjectType
(#2818, #2821)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 🔧
void
return tonull
after call (#2778), #6720, thanks @herndlm!Bugfixes 🐛
count(list)
regression (#2813), thanks @staabm!Function signature fixes 🤖
SimpleXMLElement
method return types benevolent (when they returnstatic|null
) (phpstan/phpstan-src@fb76c9f)v1.10.48
Compare Source
Bleeding edge 🔪
xor
because that's probably not what the user intended to do (phpstan/phpstan-src@a1fffb3), #10267and
andor
(phpstan/phpstan-src@1d8fff6)&&
and||
(phpstan/phpstan-src@cf2c8bb)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 🔧
ReflectionEnum::getName()
afterReflectionEnum::isBacked()
(#2806), #10192, thanks @franmomu!Bugfixes 🐛
count()
results in type loss (#2811), #10264, thanks @staabm!Function signature fixes 🤖
SimpleXMLElement::addChild
(#2808), #10269, thanks @DaveLiddament!v1.10.47
Compare Source
Improvements 🔧
ExpressionTypeResolverExtension
(#2789), thanks @janedbal!ExpressionTypeResolverExtension
in API ReferenceBugfixes 🐛
array_filter
- handle error types (#2794), #10189, thanks @mglaman!if ($var ?? null)
(phpstan/phpstan-src@c2ba341), #10224Function signature fixes 🤖
Redis::hMset
(#2793), thanks @Vaalyn!v1.10.46
Compare Source
Improvements 🔧
isset()
and ternary operator handling (#2710), #3632, #8190, #8366, #8659, #9580, #10064, #10088, thanks @staabm!Bugfixes 🐛
Internals 🔍
isSuperTypeOf()
(#2788), thanks @staabm!v1.10.45
Compare Source
Improvements 🔧
enum_exists()
arg to UnitEnum (#2764), #10169, thanks @staabm!Bugfixes 🐛
isSuperTypeOf()
(#2772, #2787), #9778, #9723, #6407, thanks @staabm!in_array
- simulate Identical/Equal handling from TypeSpecifier for literal arrays (phpstan/phpstan-src@0177e33), #10201Function signature fixes 🤖
Redis::restore
(#2765), thanks @Vaalyn!str_increment
andstr_decrement
into functionMap (#2777), thanks @zonuexe!ext-mongodb
1.17 (#2768), thanks @alcaeus!Internals 🔍
in_array()
instead of redundant property (#2770), thanks @zonuexe!MethodVisibitiliyInInterfaceRule
(#2781), thanks @staabm!return null
(#2782), thanks @zonuexe!v1.10.44
Compare Source
Improvements 🔧
list<array{id: int}>
tomixed[]
(#2760), thanks @janedbal!Bugfixes 🐛
Carbon
PHPStan extension (#2762), thanks @CalebDW!SoapClient
old-style constructor (phpstan/phpstan-src@7765768), #10165Function signature fixes 🤖
setcookie
/setrawcookie
(#2752), #10171, thanks @schlndh!v1.10.43
Compare Source
Improvements 🔧
phpstan/phpdoc-parser
ReflectionEnum
generic (phpstan/phpstan-src@9ce8faf)Bugfixes 🐛
??=
with scope before the expression (phpstan/phpstan-src@846f44e), #10151, #10131stdClass
does not have__get
method (phpstan/phpstan-src@baf359e), #10149universalObjectCratesClasses
allow dynamic properties (phpstan/phpstan-src@2ec416e)Internals 🔍
v1.10.42
Compare Source
This release closes 25 issues! 🎉
Major new features 🚀
#[\Override]
attribute (phpstan/phpstan-src@e9a5639) (RFC)checkMissingOverrideMethodAttribute
(https://phpstan.org/config-reference#checkmissingoverridemethodattribute) (phpstan/phpstan-src@ac4d3de)Bleeding edge 🔪
@final
method in OverridingMethodRule, #9135If 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 🔧
dynamicConstantNames
(phpstan/phpstan-src@cb9571b)--debug
(phpstan/phpstan-src@c534f8c)Bugfixes 🐛
non-empty-string
instr_shuffle()
(#2717), thanks @staabm!ReturnTypeWillChange
or not (phpstan/phpstan-src@eb0c7a1), #9615Function signature fixes 🤖
mailparse_msg_get_part()
(#2722), thanks @jlherren!iptcparse
return type (#2727), thanks @ManuelHu!Internals 🔍
#[\Override]
attribute in error messages (#10136), thanks @TimWolla!v1.10.41
Compare Source
Bugfixes 🐛
===
andmatch
condition (phpstan/phpstan-src@01deed6), #10084Function signature fixes 🤖
Internals 🔍
MutatingScope::debug()
- add info about conditional expressions (phpstan/phpstan-src@80782fb)v1.10.40
Compare Source
Improvements 🔧
self
because they're not usable (phpstan/phpstan-src@c6fad64), #10049Bugfixes 🐛
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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.