Update PHPStan packages to v2 (major) #331
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/major-phpstan-packages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This MR contains the following updates:
^1.10->^2.0^1.3->^2.0Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.0.3Compare Source
This release includes improvements and fixes from PHPStan 1.12.12.
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 🐛
in_array(#3646), #12083, thanks @janedbal!Function signature fixes 🤖
Internals 🔍
Scope::getPhpVersion()(#3642), thanks @staabm!Printer::__construct()(#3680), thanks @samsonasik!v2.0.2Compare Source
Improvements 🔧
diagnosecommand (#3609), thanks @staabm!phpVersion.minandmaxin VersionCompareFunctionDynamicReturnTypeExtension (#3631), thanks @staabm!Internals 🔍
v2.0.1Compare Source
Bugfixes 🐛
github.com/phpstan/phpstan-src@753fc4d98f)v2.0.0Compare Source
Read more about PHPStan 2.0.
Check out the UPGRADING guide!.
Buy the PHPStan elephpant and T-shirts!
Major new features 🚀
mixedtypes strictly, not just explicitmixedlisttype (#1751), #3311, #8185, #6243, thanks @rvanvelzen!@readonlyrule that disallows default values (#1391), thanks @herndlm!@phpstan-consistent-constructor(#1296), thanks @canvural!is_a()orclass_parents()(github.com/phpstan/phpstan-src@c4a662ac6c)new ReflectionMethod()(github.com/phpstan/phpstan-src@536306611c)instanceofof classes not covered by backward compatibility promise (github.com/phpstan/phpstan-src@ff4d02d62a)instanceofof classes covered by backward compatibility promise but where the assumption might change (github.com/phpstan/phpstan-src@996bc69fa9)github.com/phpstan/phpstan-src@9e007251ce)@phpstan-self-out(github.com/phpstan/phpstan-src@6838669976)github.com/phpstan/phpstan-src@2485b2e9c1)github.com/phpstan/phpstan-src@5f7d12b2fb)github.com/phpstan/phpstan-src@5a2d4416d9)@param-out(github.com/phpstan/phpstan-src@30c4b9e80f), #10260@param-closure-this(github.com/phpstan/phpstan-src@2fa539a39e), #10933@vartag type against native type (github.com/phpstan/phpstan-src@a69e3bc2f1)reportWrongPhpDocTypeInVarTagtotrueto have all types validated, not just native onesreportAnyTypeWideningInVarTag: truefor stricter behaviour (#2840), thanks @janedbal!github.com/phpstan/phpstan-src@0264f5bc48)@phpstan-pureabove functions and methodsPHPStan\Type\Typeinterface via@var(github.com/phpstan/phpstan-src@713b98fb10), https://github.com/nunomaduro/larastan/issues/1567#issuecomment-1460445389@mixinPHPDoc tag above traits (github.com/phpstan/phpstan-src@0d0de94690)@extends,@implements,@usefor unresolvable types (github.com/phpstan/phpstan-src@2bb528233e), #11552@methodtags (github.com/phpstan/phpstan-src@5b7e474680)@method@templatetags above traits (github.com/phpstan/phpstan-src@aadbf62d3a)@propertytags (github.com/phpstan/phpstan-src@55ea2ae516), #10752, #9356github.com/phpstan/phpstan-src@7453f4f75f)github.com/phpstan/phpstan-src@3a12724fd6,github.com/phpstan/phpstan-src@3b011f6524), #7539github.com/phpstan/phpstan-src@c4d05276fb)var_exportwithout$return=true(#3225), #11320, thanks @staabm!github.com/phpstan/phpstan-src@6ebf2361a3)new/function call/method call/static method call on a separate line without any side effects even without@phpstan-purePHPDoc tag on the declaration sidegithub.com/phpstan/phpstan-src@281a87d1abgithub.com/phpstan/phpstan-src@565fb0f6da)call_user_func()(#2479), thanks @staabm!array_filter()calls (#1077), #6840, thanks @leongersen!array_values()calls (#2917), thanks @kamil-zacek!@no-named-arguments(github.com/phpstan/phpstan-src@74ba8c2369), #5968@phpstan-self-out(github.com/phpstan/phpstan-src@892b319f25)github.com/phpstan/phpstan-src@ce7ffaf02d)@mixin(github.com/phpstan/phpstan-src@3175c81f26)polluteScopeWithBlock(defaults totrue,falseinphpstan-strict-rules) (github.com/phpstan/phpstan-src@946cf180c9)@readonlyproperty and@immutableclass PHPDoc (#1295, #1335), #4082, thanks @herndlm!instanceof *Typein favour of new methods onTypeinterface, (github.com/phpstan/phpstan-src@436e6d3015), learn more: Why Is instanceof *Type Wrong and Getting Deprecated?Improvements 🔧
github.com/phpstan/phpstan-src@fc66c24113)exceptions.check.tooWideThrowTypemade true by default (github.com/phpstan/phpstan-src@1b1da3e2ce)implicitThrowsto only look for explicit throw points in too-wide@throwsrules when set tofalse(github.com/phpstan/phpstan-src@a0e688c1d1)github.com/phpstan/phpstan-src@d7798d7f2c)github.com/phpstan/phpstan-src@f38addda2b,github.com/phpstan/phpstan-src@c8b7ea9e8f)github.com/phpstan/phpstan-src@97786ed837)github.com/phpstan/phpstan-src@a04e0be832)github.com/phpstan/phpstan-src@e19e6e5f8c), #10299github.com/phpstan/phpstan-src@9718c14f1f)GenericObjectType(#2818, #2821)github.com/phpstan/phpstan-src@46ff440648), #9410github.com/phpstan/phpstan-src@969e6fa31d)RuleLevelHelper::accepts()behaviour (github.com/phpstan/phpstan-src@941fc815db), #11119, #4174github.com/phpstan/phpstan-src@089d4c6fb6), #6398Throw_(github.com/phpstan/phpstan-src@22eef6d5ab), #4912@param-out(github.com/phpstan/phpstan-src@56b2002438)github.com/phpstan/phpstan-src@04f8636e65)github.com/phpstan/phpstan-src@5fd8cee591)github.com/phpstan/phpstan-src@ca2c66cc4d)@finalmethod in OverridingMethodRule, #9135github.com/phpstan/phpstan-src@ddf8d5c385,github.com/phpstan/phpstan-src@17e4b74335)github.com/phpstan/phpstan-src@a6470521b6), #10389@param-out(github.com/phpstan/phpstan-src@7ceb19d3b4), https://github.com/phpstan/phpstan/issues/8880#issuecomment-1426971473skipCheckGenericClasses(github.com/phpstan/phpstan-src@28c2c79b16)??/isset/emptywith different message (#1253), thanks @rajyan!is_array(#1191), thanks @herndlm!github.com/phpstan/phpstan-src@c30e9a484c)github.com/phpstan/phpstan-src@124b30f98c,github.com/phpstan/phpstan-strict-rules@0c82c96f2a)github.com/phpstan/phpstan-src@9780d352f3)github.com/phpstan/phpstan-src@9c2552b7e7)github.com/phpstan/phpstan-src@b116d25a6e)github.com/phpstan/phpstan-src@939a715a06)isset(), not just on PHP 8.2+ (#3476), thanks @ondrejmirtes!github.com/phpstan/phpstan-src@950a491485)Collection<...>|Foo[]being resolved to Collection of Foo (github.com/phpstan/phpstan-src@fff8f09598)github.com/phpstan/phpstan-src@1d3f431395)github.com/phpstan/phpstan-src@bf19914cac)github.com/phpstan/phpstan-src@f680629bc9)github.com/phpstan/phpstan-src@6cf223840f)github.com/phpstan/phpstan-src@67fbfaee65)PhpMethodReflectionandPhpFunctionReflection::isVariadic()(#3534), thanks @staabm!github.com/phpstan/phpstan-src@466ad51740)github.com/phpstan/phpstan-src@57c65888e6)Bugfixes 🐛
mixedtype based on config (#2885), thanks @schlndh!Function signature fixes 🤖
0|positive-int(#1027), thanks @staabm!Imagickparameter types (#2334), thanks @zonuexe!max()/min()should expect non-empty-array (#2163), thanks @staabm!Closure::bind$newScopeparam (#2817), thanks @mvorisek!error_logerrors withmessage_type=2(#2428), #9380, thanks @staabm!FILE_NO_DEFAULT_CONTEXTinfile()(#2482), thanks @staabm!file()flags args (#2476, #2482), thanks @staabm!flock()operation flags (#2477), thanks @staabm!stream_socket_client()signature (#2519), thanks @staabm!scandir()signature (#2518), thanks @staabm!extract()signature (#2517), thanks @staabm!RecursiveIteratorIterator::__construct()parameter types (#2835), thanks @staabm!Localesignatures (#2880), thanks @devnix!$modeparameter for thecount()(#3190), thanks @kuma3!filter_input*type param type (#2271), thanks @herndlm!curl_setoptfunction signature based on 2nd arg (#1719), thanks @staabm!count_chars()(#3596), thanks @u01jmg3!Internals 🔍
github.com/phpstan/phpstan-src@7e366e08f9)github.com/phpstan/phpstan-src@2c4c0cde75)github.com/phpstan/phpstan-src@f17cf9ec43)$templateTagsis required (github.com/phpstan/phpstan-src@5b58f83e6d)$usePathConstantsAsConstantStringmade required (github.com/phpstan/phpstan-src@f88d9ba7f5)PhpMethodReflectionFactory::create()- all parameters are required (github.com/phpstan/phpstan-src@8bfbf8f254)$nodeTypeand$acceptsNamedArgumentsmade required (github.com/phpstan/phpstan-src@493752737c)$ignorableofcompare()method made required (github.com/phpstan/phpstan-src@f85a500288)$dateTimeClassof DateTimeModifyReturnTypeExtension constructor made required (github.com/phpstan/phpstan-src@a8cd423e84)github.com/phpstan/phpstan-src@64ff598cd4)github.com/phpstan/phpstan-src@51de9032c6)PhpVersionparameter to variousTypemethods (#3478), thanks @VincentLanglet!github.com/phpstan/phpstan-src@5651bec661)github.com/phpstan/phpstan-src@db02a30ca1)github.com/phpstan/phpstan-src@f302c90692)github.com/phpstan/phpstan-src@392f090066)github.com/phpstan/phpstan-src@f0a629685d)getClass()return types in extension interfaces (#1754), thanks @staabm!github.com/phpstan/phpstan-src@38cb5a315e)github.com/phpstan/phpstan-src@b5accb3f6b)github.com/phpstan/phpstan-src@b0858332ef)github.com/phpstan/phpstan-src@778af2ed74,github.com/phpstan/phpstan-src@cb6ab5544a)FunctionCallParametersCheck::check()parameters (github.com/phpstan/phpstan-src@710e09c416)instanceof selfinConstantArrayType(#3552), thanks @herndlm!bashunit -aexit_code to check for errors (#3533), thanks @Chemaclass!phpstan/phpstan-symfony (phpstan/phpstan-symfony)
v2.0.0Compare Source
skipCheckGenericClasses_in their nameConfiguration
📅 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 MR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this MR and you won't be reminded about these updates again.
This MR has been generated by Renovate Bot.
mentioned in issue #2
changed the description
changed the description
changed the description
added 5 commits
masterCompare with previous version
changed the description
marked the checklist item If you want to rebase/retry this MR, check this box as completed
added 3 commits
masterCompare with previous version
marked the checklist item If you want to rebase/retry this MR, check this box as incomplete
changed the description
changed the description
added 27 commits
masterCompare with previous version
added 9 commits
masterCompare with previous version
changed the description
marked the checklist item If you want to rebase/retry this MR, check this box as completed
added 1 commit
0bbf428f- Update PHPStan packages to v2Compare with previous version
marked the checklist item If you want to rebase/retry this MR, check this box as incomplete
added 1 commit
5c6c0e21- fix support for newer phpstan symfony libraryCompare with previous version
Edited/Blocked Notification
Renovate will not automatically rebase this MR, because it does not recognize the last commit author and assumes somebody else may have edited the MR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.
added 1 commit
d205d987- fix ignoring missing typesCompare with previous version