-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore(deps): update dependency phpstan/phpstan to v2 #199
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/major-phpstan-packages
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
3fd2bf8
to
9d49ba1
Compare
9d49ba1
to
c349820
Compare
c349820
to
a84640a
Compare
7aebf15
to
2d2bc4e
Compare
2d2bc4e
to
5bc6d3d
Compare
6bfd598
to
a4b9ad4
Compare
a4b9ad4
to
ae5f9df
Compare
dcd7bb9
to
010f02a
Compare
dc73907
to
59e57b1
Compare
59e57b1
to
2b665a2
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.12.6
->2.1.11
Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.1.11
Compare Source
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
SessionHandlerInterface::read
return type (#3884), #12748, thanks @sayuprc!v2.1.10
Compare Source
Bugfixes 🐛
v2.1.9
Compare Source
Improvements 🔧
count()
narrowing of constant arrays (#3709), #12190, #3631, thanks @herndlm!#[Pure(true)]
in PhpStorm stubs ashasSideEffects => true
(#3880), #6345, #12577, #10342, thanks @zonuexe!Bugfixes 🐛
count()
regression (#3895), thanks @staabm!count()
narrowing handling of empty array (#3896), thanks @herndlm!count()
(#3898), thanks @herndlm!Internals 🔍
shouldPolluteScopeWithLoopInitialAssignments
to true which is PHPStan's default behaviour (phpstan/phpstan-src@1b56b0c)v2.1.8
Compare Source
Improvements 🔧
@readonly
property cannot be passed by-ref (#3850), #12676, thanks @staabm!ClassReflection::isSubclassOf(string $className)
in favour ofClassReflection::isSubclassOfClass(ClassReflection $class)
string $className
instead ofClassReflection
and you are too lazy to get ClassReflection via ReflectionProvider, you can still useClassReflection::is(string $className)
Bugfixes 🐛
unset.possiblyHookedProperty
(#3855), #12695, thanks @staabm!Internals 🔍
TrinaryLogic::and()
(#3860), thanks @staabm!MutatingScope::mergeWith()
(#3861), thanks @staabm!v2.1.7
Compare Source
Improvements 🔧
IgnoreErrorExtension
(#3783), thanks @ruudk!new Foo()
cannot be a subclass (#3853)$a::class
andget_class($a)
cannot be a subclass (phpstan/phpstan-src@772f297)unset()
(#3827), #12421, thanks @staabm!unset()
(#3842), #12336, thanks @staabm!Integer
class before resolving toint
(#3848), #12660, thanks @stepo2!Bugfixes 🐛
ClassLike::$namespacedName must not be accessed before initialization
(phpstan/phpstan-src@948f79d), #12627%env%
inincludes
(phpstan/phpstan-src@d4d7e11), #12606Function signature fixes 🤖
ResourceBundle::getLocales
(#3840), #12579, thanks @mat-se!scandir()
argument and return type (#3808), thanks @zonuexe!mysqli_fetch_all()
(#3778), thanks @oxan!Internals 🔍
instanceof ConstantString
(#3780), thanks @staabm!new
(#3852)v2.1.6
Compare Source
Improvements 🔧
//
(https://github.com/phpstan/phpdoc-parser/pull/264), https://github.com/phpstan/phpdoc-parser/issues/184, thanks @shmax!Bugfixes 🐛
Internals 🔍
v2.1.5
Compare Source
Improvements 🔧
array<value-of<MyEnum::FIRST>, X>
to create an array shape where the key is backed enum case valueBugfixes 🐛
GenericStaticType
in@phpstan-self-out
, use@phpstan-self-out
type when returning$this
(phpstan/phpstan-src@dab99cb), #12575, #12548, #8439, #8316, #8275@phpstan-self-out
with GenericStaticType when method is called on$this
(phpstan/phpstan-src@cf64761)v2.1.4
Compare Source
Improvements 🔧
Bugfixes 🐛
Function signature fixes 🤖
false
to alltrader_*
functions return type (#3815), thanks @rabol!v2.1.3
Compare Source
If you're using
larastan/larastan
PHPStan extension, please update to version 3.0.4 alongside PHPStan 2.1.3 for improved compatibility with the new genericstatic<...>
type. Thank you.This release includes fixes and improvements from PHPStan 1.12.17. Most impportantly it introduces GenericStaticType - support for
static<...>
(#1289), #12485, #11398, #10417, #9807, #9449, #8623, #5512Improvements 🔧
->getAttributes()
on any thinkable reflection object, including$scope->getFunction()
and you'll get a new PHPStan's AttributeReflection class: https://apiref.phpstan.org/2.1.x/PHPStan.Reflection.AttributeReflection.htmlBugfixes 🐛
ReflectionClass::isSubclassOf()
with invariant@template T
(phpstan/phpstan-src@4f2af3b), #12473array_combine()
args must have the same number of elements (ondrejmirtes/BetterReflection@36f3291), #12327Function signature fixes 🤖
Imagick::getConfigureOptions()
returns array instead of string (#3801), thanks @blankse!Internals 🔍
phpstanPlayground.configParameter
errors (phpstan/phpstan-src@71d0327)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)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 this update again.
This PR was generated by Mend Renovate. View the repository job log.