Update dependency phpstan/phpstan to v2 - autoclosed #19
Loading…
x
Reference in New Issue
Block a user
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 PR contains the following updates:
^1.2
->^2.0
Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.0.3
Compare Source
v2.0.2
Compare Source
Improvements 🔧
diagnose
command (#3609), thanks @staabm!phpVersion.min
andmax
in VersionCompareFunctionDynamicReturnTypeExtension (#3631), thanks @staabm!Internals 🔍
v2.0.1
Compare Source
Bugfixes 🐛
753fc4d98f
)v2.0.0
Compare Source
Read more about PHPStan 2.0.
Check out the UPGRADING guide!.
Buy the PHPStan elephpant and T-shirts!
Major new features 🚀
mixed
types strictly, not just explicitmixed
list
type (#1751), #3311, #8185, #6243, thanks @rvanvelzen!@readonly
rule that disallows default values (#1391), thanks @herndlm!@phpstan-consistent-constructor
(#1296), thanks @canvural!is_a()
orclass_parents()
(c4a662ac6c
)new ReflectionMethod()
(536306611c
)instanceof
of classes not covered by backward compatibility promise (ff4d02d62a
)instanceof
of classes covered by backward compatibility promise but where the assumption might change (996bc69fa9
)9e007251ce
)@phpstan-self-out
(6838669976
)2485b2e9c1
)5f7d12b2fb
)5a2d4416d9
)@param-out
(30c4b9e80f
), #10260@param-closure-this
(2fa539a39e
), #10933@var
tag type against native type (a69e3bc2f1
)reportWrongPhpDocTypeInVarTag
totrue
to have all types validated, not just native onesreportAnyTypeWideningInVarTag: true
for stricter behaviour (#2840), thanks @janedbal!0264f5bc48
)@phpstan-pure
above functions and methodsPHPStan\Type\Type
interface via@var
(713b98fb10
), https://github.com/nunomaduro/larastan/issues/1567#issuecomment-1460445389@mixin
PHPDoc tag above traits (0d0de94690
)@extends
,@implements
,@use
for unresolvable types (2bb528233e
), #11552@method
tags (5b7e474680
)@method
@template
tags above traits (aadbf62d3a
)@property
tags (55ea2ae516
), #10752, #93567453f4f75f
)3a12724fd6
,3b011f6524
), #7539c4d05276fb
)var_export
without$return=true
(#3225), #11320, thanks @staabm!6ebf2361a3
)new
/function call/method call/static method call on a separate line without any side effects even without@phpstan-pure
PHPDoc tag on the declaration side281a87d1ab
565fb0f6da
)call_user_func()
(#2479), thanks @staabm!array_filter()
calls (#1077), #6840, thanks @leongersen!array_values()
calls (#2917), thanks @kamil-zacek!@no-named-arguments
(74ba8c2369
), #5968@phpstan-self-out
(892b319f25
)ce7ffaf02d
)@mixin
(3175c81f26
)polluteScopeWithBlock
(defaults totrue
,false
inphpstan-strict-rules
) (946cf180c9
)@readonly
property and@immutable
class PHPDoc (#1295, #1335), #4082, thanks @herndlm!instanceof *Type
in favour of new methods onType
interface, (436e6d3015
), learn more: Why Is instanceof *Type Wrong and Getting Deprecated?Improvements 🔧
fc66c24113
)exceptions.check.tooWideThrowType
made true by default (1b1da3e2ce
)implicitThrows
to only look for explicit throw points in too-wide@throws
rules when set tofalse
(a0e688c1d1
)d7798d7f2c
)f38addda2b
,c8b7ea9e8f
)97786ed837
)a04e0be832
)e19e6e5f8c
), #102999718c14f1f
)GenericObjectType
(#2818, #2821)46ff440648
), #9410969e6fa31d
)RuleLevelHelper::accepts()
behaviour (941fc815db
), #11119, #4174089d4c6fb6
), #6398Throw_
(22eef6d5ab
), #4912@param-out
(56b2002438
)04f8636e65
)5fd8cee591
)ca2c66cc4d
)@final
method in OverridingMethodRule, #9135ddf8d5c385
,17e4b74335
)a6470521b6
), #10389@param-out
(7ceb19d3b4
), https://github.com/phpstan/phpstan/issues/8880#issuecomment-1426971473skipCheckGenericClasses
(28c2c79b16
)??
/isset
/empty
with different message (#1253), thanks @rajyan!is_array
(#1191), thanks @herndlm!c30e9a484c
)124b30f98c
,0c82c96f2a
)9780d352f3
)9c2552b7e7
)b116d25a6e
)939a715a06
)isset()
, not just on PHP 8.2+ (#3476), thanks @ondrejmirtes!950a491485
)Collection<...>|Foo[]
being resolved to Collection of Foo (fff8f09598
)1d3f431395
)bf19914cac
)f680629bc9
)6cf223840f
)67fbfaee65
)PhpMethodReflection
andPhpFunctionReflection::isVariadic()
(#3534), thanks @staabm!466ad51740
)57c65888e6
)Bugfixes 🐛
mixed
type based on config (#2885), thanks @schlndh!Function signature fixes 🤖
0|positive-int
(#1027), thanks @staabm!Imagick
parameter types (#2334), thanks @zonuexe!max()
/min()
should expect non-empty-array (#2163), thanks @staabm!Closure::bind
$newScope
param (#2817), thanks @mvorisek!error_log
errors withmessage_type=2
(#2428), #9380, thanks @staabm!FILE_NO_DEFAULT_CONTEXT
infile()
(#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!Locale
signatures (#2880), thanks @devnix!$mode
parameter for thecount()
(#3190), thanks @kuma3!filter_input*
type param type (#2271), thanks @herndlm!curl_setopt
function signature based on 2nd arg (#1719), thanks @staabm!count_chars()
(#3596), thanks @u01jmg3!Internals 🔍
7e366e08f9
)2c4c0cde75
)f17cf9ec43
)$templateTags
is required (5b58f83e6d
)$usePathConstantsAsConstantString
made required (f88d9ba7f5
)PhpMethodReflectionFactory::create()
- all parameters are required (8bfbf8f254
)$nodeType
and$acceptsNamedArguments
made required (493752737c
)$ignorable
ofcompare()
method made required (f85a500288
)$dateTimeClass
of DateTimeModifyReturnTypeExtension constructor made required (a8cd423e84
)64ff598cd4
)51de9032c6
)PhpVersion
parameter to variousType
methods (#3478), thanks @VincentLanglet!5651bec661
)db02a30ca1
)f302c90692
)392f090066
)f0a629685d
)getClass()
return types in extension interfaces (#1754), thanks @staabm!38cb5a315e
)b5accb3f6b
)b0858332ef
)778af2ed74
,cb6ab5544a
)FunctionCallParametersCheck::check()
parameters (710e09c416
)instanceof self
inConstantArrayType
(#3552), thanks @herndlm!bashunit -a
exit_code to check for errors (#3533), thanks @Chemaclass!v1.12.12
Compare Source
Configuration
📅 Schedule: Branch creation - "before 7am" (UTC), Automerge - "before 7am" (UTC).
🚦 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.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: composer.lock
8def6ee9eb
to87054878d1
Update dependency phpstan/phpstan to v2to Update dependency phpstan/phpstan to v2 - autoclosedPull request closed