-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TASK] Update PHPStan packages to v2 (major) #82
base: main
Are you sure you want to change the base?
Conversation
| datasource | package | from | to | | ---------- | ----------------------- | ------- | ----- | | packagist | phpstan/phpstan | 1.12.15 | 2.1.2 | | packagist | phpstan/phpstan-phpunit | 1.4.2 | 2.0.3 | | packagist | phpstan/phpstan-symfony | 1.4.13 | 2.0.2 |
|
Code Climate has analyzed commit 7dc8621 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 0.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 0.0% (0.0% change). View more on Code Climate. |
Pull Request Test Coverage Report for Build 12903537982Details
💛 - Coveralls |
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 13391 lines exceeds the maximum allowed for the inline comments feature.
15cc610
to
7dc8621
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 13403 lines exceeds the maximum allowed for the inline comments feature.
Waiting for |
This PR contains the following updates:
^1.10
->^1.10 || ^2.0
^1.3
->^1.3 || ^2.0
^1.3
->^1.3 || ^2.0
Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.1.2
Compare Source
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
false
to the return type (#3730), thanks @sreichel!samesite
cookie argument precision (phpstan/phpstan-src@a54cdb0)Internals 🔍
ConstantArrayType::findTypeAndMethodNames()
used only once (phpstan/phpstan-src@30b9cd8)v2.1.1
Compare Source
Improvements 🔧
getNextStatements
in UnreachableStatementNode (#3745), thanks @samsonasik!@phpstan-consistent-constructor
(#3687), #12137, thanks @herndlm!checkUninitializedProperties
is enabled (phpstan/phpstan-src@ca86412)Bugfixes 🐛
Internals 🔍
propertyName
attributev2.1.0
Compare Source
Read all about this release on PHPStan's blog!
Major new features 🚀
#[Deprecated]
attribute (RFC)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 🔧
#[AllowDynamicProperties]
(#3738), #12281, thanks @staabm!parent::
(phpstan/phpstan-src@41837b4)Bugfixes 🐛
preg_match()
group containing start/end meta characters (#3740), #12297, thanks @staabm!Internals 🔍
In*Node
virtual nodes for more precise Scope phpstan/phpstan-src@90e48fa)Scope::getConstant
instead (#3666), thanks @staabm!v2.0.4
Compare Source
This release includes improvements and fixes from PHPStan 1.12.13.
Improvements 🔧
strictRulesInstalled
parameter (#3729), thanks @staabm!Bugfixes 🐛
htmlspecialchars
andhtmlentities
beingnon-empty-string
without ENT_SUBSTITUTE flag (#3710), #12021, thanks @jack-worman!Function signature fixes 🤖
fgetcsv
return type; never returns null (#3712), thanks @janedbal!apcu_cache_info
andapcu_sma_info
signatures (#3726, phpstan/phpstan-src@e7e8093), thanks @vindic!Internals 🔍
v2.0.3
Compare 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.2
Compare Source
Improvements 🔧
diagnose
command (#3609), thanks @staabm!phpVersion.min
andmax
in VersionCompareFunctionDynamicReturnTypeExtension (#3631), thanks @staabm!Internals 🔍
v2.0.1
Compare Source
Bugfixes 🐛
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()
(phpstan/phpstan-src@c4a662a)new ReflectionMethod()
(phpstan/phpstan-src@5363066)instanceof
of classes not covered by backward compatibility promise (phpstan/phpstan-src@ff4d02d)instanceof
of classes covered by backward compatibility promise but where the assumption might change (phpstan/phpstan-src@996bc69)@phpstan-self-out
(phpstan/phpstan-src@6838669)@param-out
(phpstan/phpstan-src@30c4b9e), #10260@param-closure-this
(phpstan/phpstan-src@2fa539a), #10933@var
tag type against native type (phpstan/phpstan-src@a69e3bc)reportWrongPhpDocTypeInVarTag
totrue
to have all types validated, not just native onesreportAnyTypeWideningInVarTag: true
for stricter behaviour (#2840), thanks @janedbal!@phpstan-pure
above functions and methodsPHPStan\Type\Type
interface via@var
(phpstan/phpstan-src@713b98f), https://github.com/nunomaduro/larastan/issues/1567#issuecomment-1460445389@mixin
PHPDoc tag above traits (phpstan/phpstan-src@0d0de94)@extends
,@implements
,@use
for unresolvable types (phpstan/phpstan-src@2bb5282), #11552@method
tags (phpstan/phpstan-src@5b7e474)@method
@template
tags above traits (phpstan/phpstan-src@aadbf62)@property
tags (phpstan/phpstan-src@55ea2ae), #10752, #9356var_export
without$return=true
(#3225), #11320, thanks @staabm!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 sidecall_user_func()
(#2479), thanks @staabm!array_filter()
calls (#1077), #6840, thanks @leongersen!array_values()
calls (#2917), thanks @kamil-zacek!@no-named-arguments
(phpstan/phpstan-src@74ba8c2), #5968@phpstan-self-out
(phpstan/phpstan-src@892b319)@mixin
(phpstan/phpstan-src@3175c81)polluteScopeWithBlock
(defaults totrue
,false
inphpstan-strict-rules
) (phpstan/phpstan-src@946cf18)@readonly
property and@immutable
class PHPDoc (#1295, #1335), #4082, thanks @herndlm!instanceof *Type
in favour of new methods onType
interface, (phpstan/phpstan-src@436e6d3), learn more: Why Is instanceof *Type Wrong and Getting Deprecated?Improvements 🔧
exceptions.check.tooWideThrowType
made true by default (phpstan/phpstan-src@1b1da3e)implicitThrows
to only look for explicit throw points in too-wide@throws
rules when set tofalse
(phpstan/phpstan-src@a0e688c)GenericObjectType
(#2818, #2821)RuleLevelHelper::accepts()
behaviour (phpstan/phpstan-src@941fc81), #11119, #4174Throw_
(phpstan/phpstan-src@22eef6d), #4912@param-out
(phpstan/phpstan-src@56b2002)@final
method in OverridingMethodRule, #9135@param-out
(phpstan/phpstan-src@7ceb19d), https://github.com/phpstan/phpstan/issues/8880#issuecomment-1426971473skipCheckGenericClasses
(phpstan/phpstan-src@28c2c79)??
/isset
/empty
with different message (#1253), thanks @rajyan!is_array
(#1191), thanks @herndlm!isset()
, not just on PHP 8.2+ (#3476), thanks @ondrejmirtes!Collection<...>|Foo[]
being resolved to Collection of Foo (phpstan/phpstan-src@fff8f09)PhpMethodReflection
andPhpFunctionReflection::isVariadic()
(#3534), thanks @staabm!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 🔍
$templateTags
is required (phpstan/phpstan-src@5b58f83)$usePathConstantsAsConstantString
made required (phpstan/phpstan-src@f88d9ba)PhpMethodReflectionFactory::create()
- all parameters are required (phpstan/phpstan-src@8bfbf8f)$nodeType
and$acceptsNamedArguments
made required (phpstan/phpstan-src@4937527)$ignorable
ofcompare()
method made required (phpstan/phpstan-src@f85a500)$dateTimeClass
of DateTimeModifyReturnTypeExtension constructor made required (phpstan/phpstan-src@a8cd423)PhpVersion
parameter to variousType
methods (#3478), thanks @VincentLanglet!getClass()
return types in extension interfaces (#1754), thanks @staabm!FunctionCallParametersCheck::check()
parameters (phpstan/phpstan-src@710e09c)instanceof self
inConstantArrayType
(#3552), thanks @herndlm!bashunit -a
exit_code to check for errors (#3533), thanks @Chemaclass!v1.12.16
Compare Source
Bugfixes 🐛
implode()
(#3772), #11854, thanks @staabm!hash()
return type (#3665), thanks @VincentLanglet!OpenSslEncryptParameterOutTypeExtension
(#3753), thanks @paulbalandan!new
from parent constructor - reject types that would fail bound check of the child class (phpstan/phpstan-src@d06f792), #12386Function signature fixes 🤖
stream_context_get_params
(phpstan/phpstan-src@ff1feee), #11796Internals 🔍
instanceof ConstantScalarType
(#3773), thanks @staabm!phpstan/phpstan-phpunit (phpstan/phpstan-phpunit)
v2.0.3
Compare Source
v2.0.2
Compare Source
Configuration
📅 Schedule: Branch creation - "* * * * 1-5" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.