Update PHPStan packages to v2 (major) #408
Merged
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.10.14->^2.0.0^1.3.11->^2.0.0^1.5.1->^2.0.0Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.0.1Compare Source
v2.0.0Compare Source
v1.12.10Compare Source
Bugfixes 🐛
forendless loop detection (#3622), #11992, thanks @herndlm!v1.12.9Compare Source
Improvements 🔧
@readonlyPHPDoc on the class as alternative to@immutable(#3523), #11775, thanks @herndlm!Bugfixes 🐛
forendless loops (#3573), #6807, #8463, #9374, thanks @herndlm!preg_matchgreater than0(#3612), #11293, thanks @staabm!voidreturn type in a union when the returned expr is originallyvoid(phpstan/phpstan-src@80c1df2), #11980@phpstan-ignorewith trait in the same file (phpstan/phpstan-src@381c137), #11981Internals 🔍
v1.12.8Compare Source
Improvements 🔧
Bugfixes 🐛
$thisin return type even in final classes (#3599), #11857, thanks @calebdw!E_DEPRECATEDfrom error_reporting (phpstan/phpstan-src@277e34b), #11937filterTypes()(#3535), #11663, thanks @VincentLanglet!Function signature fixes 🤖
Imagick::writeImage(s)Filesupportingformatparameter (#3588), thanks @kingjia90!Internals 🔍
instanceof ConstantBooleanTypein loop analysis (#3577), #11913, thanks @herndlm!@apito TypeExpr (#3601), thanks @ruudk!UnionType::filterTypes(#3607), thanks @VincentLanglet!v1.12.7Compare Source
Major new features 🚀
Improvements 🔧
-vvv) to very verbose (-vv) mode (#3345), thanks @janedbal!non-empty-arrayandnon-empty-listarray shape kind (phpstan/phpstan-src@107a7e3)Bugfixes 🐛
array_reverse()with optional keys (#3406), #11549, thanks @herndlm!Function signature fixes 🤖
get_defined_vars()(#3546), thanks @janedbal!getAttributesreturnslist(#3548), thanks @ManuelHu!Internals 🔍
PHPStan\dumpPhpDocType()(#3559), #11561, thanks @zonuexe!v1.12.6Compare Source
Bleeding edge 🔪
@phpstan-assertPHPDoc tags (phpstan/phpstan-src@ca0a7e9), #11780If 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 🔧
ClassConstFetch::$classwhen it's a Name node (phpstan/phpstan-src@712c33e)ClassConstFetch::$name(phpstan/phpstan-src@b38c852)Bugfixes 🐛
lowercase-stringIntegerRangeType::toString()(#3475), thanks @staabm!Function signature fixes 🤖
spl_autoload_functionson PHP8.0+ (#2810), thanks @ManuelHu!Internals 🔍
Scope::getMaybeDefinedVariables()(#3521), #11772, thanks @ruudk!Type::sliceArray()(#3514) (#3514), thanks @herndlm!v1.12.5Compare Source
Improvements 🔧
ParametersAcceptorSelector::selectSingle()(phpstan/phpstan-src@23c53a2)lowercase-string(#3438), thanks @VincentLanglet!toInteger()(#3434), thanks @staabm!MixedType::toString()with subtracted type (#3420), thanks @staabm!MixedType::toBoolean()with subtracted type (#3471), thanks @staabm!isset($arr[$k])should narrow$k(#3453), #11716, #8559, thanks @staabm!isset()narrows string-key in int-keyed-array to numeric-string (#3472), thanks @staabm!Bugfixes 🐛
sprintf()inference for constant values with format-width in pattern (#3474), thanks @staabm!filter_var()(#2656), thanks @mvorisek!Function signature fixes 🤖
iptcparsereturn type (#3483), thanks @ManuelHu!Internals 🔍
selectSingle()when analysing function body in rules (phpstan/phpstan-src@41916ba)selectSingle()in MutatingScope (phpstan/phpstan-src@865c618)ParametersAcceptorSelector::selectFromArgs()instead ofselectSingle()wherever possible (phpstan/phpstan-src@e283d3a)selectSingle()in ParametersAcceptorSelector (phpstan/phpstan-src@1322aaf)@internalgetOnlyVariant()method on FunctionReflection/ExtendedMethodReflection to use instead ofselectSingle()(phpstan/phpstan-src@714877b)Type::chunkArray()(#3408), thanks @herndlm!v1.12.4Compare Source
Improvements 🔧
argument.namedare ignorable now (phpstan/phpstan-src@193b4f5)composerAutoloaderProjectPathson Windows (#3451), thanks @staabm!treatPhpDocTypesAsCertaintip (#3452), #11689, thanks @ruudk!Bugfixes 🐛
array_map()return value (#3425), #10715, #11056, #10685, thanks @rvanvelzen!range()on PHP 7.x (#3424), thanks @staabm!range()with float step should return an array of floats (#3447), #11692, thanks @staabm!*strlen()with positive-int (#3407), #11558, thanks @staabm!Function signature fixes 🤖
Internals 🔍
paratest(#3440), thanks @schlndh!Output::isDecoratedandOutput::isVeryVerbose(#3436), thanks @ruudk!v1.12.3Compare Source
Improvements 🔧
Bugfixes 🐛
ArrayFilterFunctionReturnTypeReturnTypeExtensionand support first-class callable (#3329), #11337, thanks @takaram!list<T>toarray{T}(#3412), #11642, thanks @staabm!Function signature fixes 🤖
curl_init()false returns (#3409), #11640, thanks @tscni!Internals 🔍
COMPOSER_ROOT_VERSIONhack should no longer be necessary (#3414)v1.12.2Compare Source
Improvements 🔧
Bugfixes 🐛
@mixinclass reflection extensions after all other class reflection extensions (phpstan/phpstan-src@c889baa), #11624, #11342, #10159, https://github.com/larastan/larastan/issues/2032count()withpositive-int(#3389), thanks @staabm!Type::reverseArray()(#3344), thanks @herndlm!Function signature fixes 🤖
version_compare()operator arg can be null (#3399), #4457, thanks @staabm!Internals 🔍
v1.12.1Compare Source
Bleeding edge 🔪
@method@templatetags above traits (phpstan/phpstan-src@aadbf62)@mixinPHPDoc tag above traits (phpstan/phpstan-src@0d0de94)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 🔧
(bool) $exprlike$expr != false(#3380), #8881, #7685, #6006, #10528, thanks @staabm!(string) $exprlike$expr != false(#3387), thanks @staabm!(int) $exprlike$expr != false(#3384), thanks @staabm!(float) $exprlike$expr != false(#3391), thanks @staabm!@mixinabove traits (phpstan/phpstan-src@f5e2e32)Bugfixes 🐛
array_filterwith callback optional persistance (#3366), #11570, thanks @robotomarvin!strlen() ==and===comparison with integer range (#3342), #11548, thanks @staabm!get_debug_typeproduces wrong type for anonymous classes with parent (#3374), #11562, thanks @patrickkusebauch!preg_replace()return type (#3338), #11547, thanks @staabm!staticin PHPDoc tags above traits as an error (phpstan/phpstan-src@777a82a), #11591$-only case (#3394), #11622, thanks @staabm!@param-outvariable after assignment (phpstan/phpstan-src@5892e8d), #11580, #6642Internals 🔍
PHPStan\debugScope()(phpstan/phpstan-src@5909fb2)v1.12.0Compare Source
Read all about PHPStan 1.12 on phpstan.org »
Major new features 🚀
$matchesfrompreg_matchgenerally available, out of bleeding edge (phpstan/phpstan-src@bd2cec1)Bleeding edge 🔪
@no-named-arguments(phpstan/phpstan-src@74ba8c2), #5968@param-out(phpstan/phpstan-src@30c4b9e), #10260@param-closure-this(phpstan/phpstan-src@2fa539a), #10933@param-closure-this(phpstan/phpstan-src@95c0a58), #10932@param-immediately-invoked-callableand@param-later-invoked-callable(phpstan/phpstan-src@580a6ad), #10932@phpstan-self-out(phpstan/phpstan-src@6838669)@phpstan-self-out(phpstan/phpstan-src@892b319)@mixin(phpstan/phpstan-src@3175c81)@propertytags (phpstan/phpstan-src@55ea2ae), #10752, #9356@methodtags (phpstan/phpstan-src@5b7e474)@extends,@implements,@usefor unresolvable types (phpstan/phpstan-src@2bb5282), #11552If 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 🔧
final,@apiclasses made@final(#3264, phpstan/phpstan-src@5baa146)PhpParser\Node\Stmt\Class_::isAnonymous()(#3343), thanks @tscni!curl_init()return type analysis (#3346), thanks @tscni!@phpstan-self-outabove static method (phpstan/phpstan-src@0dfd821)@phpstan-self-out(phpstan/phpstan-src@e182c06)@phpstan-self-out(phpstan/phpstan-src@9ebc315)@methodBugfixes 🐛
strlen()on integer range (#3337), thanks @staabm!count()with integer range (#3335), thanks @staabm!Internals 🔍
highlight_string()stub with a return type extension (#3350)v1.11.11Compare Source
Improvements 🔧
Bugfixes 🐛
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 these updates again.
This PR was generated by Mend Renovate. View the repository job log.