-
Notifications
You must be signed in to change notification settings - Fork 1
chore(deps): update dependency phpstan/phpstan to v2 #199
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
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 hidden or 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
59e57b1
to
2b665a2
Compare
2b665a2
to
70a0872
Compare
7a4b6f7
to
e3aaad8
Compare
4866294
to
f2d2476
Compare
f2d2476
to
2bca2aa
Compare
2bca2aa
to
348b164
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.25
->2.1.18
Release Notes
phpstan/phpstan (phpstan/phpstan)
v2.1.18
Compare Source
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 🔧
@phpstan-sealed
support (#4095), thanks @VincentLanglet!--fail-without-result-cache
when the error formatter returns 0 (phpstan/phpstan-src@df9fa6e)count()
return type inObjectType::getArraySize()
(#4072, #4078), thanks @vojtech-dobes!PDO::connect
dynamic method return type extension (#4015), #12359, thanks @VincentLanglet!PhpVersion::__construct
to BC promise (#4022), #8582, thanks @VincentLanglet!switch
on::class
(#4011), #13069, thanks @VincentLanglet!array_keys
return type (#3590), #11928, thanks @staabm!Bugfixes 🐛
ClosureType::equals()
for pure/impure closures (phpstan/phpstan-src@02066c7), #13067in_array()
always true (#4073), #13151, #8818, #12755, #12412, thanks @VincentLanglet!MixedType->equals(ErrorType)
(#3934), thanks @staabm!unset()
with nested dim fetch (#3964), #12927, #12330, #11171, #8282, #12754, thanks @staabm!Function signature fixes 🤖
posix_getpwnam()
(#4091), #12254, thanks @zonuexe!SimpleXMLElement::xpath
return type (#4096), thanks @VincentLanglet!locale_get_display_x()
return types (#4085), thanks @cfahner!DOMElement::$attributes
stub (#4029), #13076, thanks @VincentLanglet!Internals 🔍
parametersSchema.neon
(phpstan/phpstan-src@72c2a8d)vendor/attributes.php
.AutowiredService
AutowiredParameter
NonAutowiredService
GenerateFactory
RegisteredRule
RegisteredCollector
#[Override]
for methods overriding 3rd party (phpstan/phpstan-src@98ed732)??=
(#4084), thanks @zonuexe!$var === const
within_array()
(#4098), thanks @zonuexe!assertSuperType
testing utility (#4066), thanks @vojtech-dobes!Type::spliceArray()
, improvesplice_array()
array type narrowing (#3952), thanks @herndlm!v2.1.17
Compare Source
Major new features 🚀
Bleeding edge 🔪
new static()
in static method of abstract class - level 0 (phpstan/phpstan-src@a5f7c06)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 🐛
array_column()
with explicit null$index_key
(#3970), #12945, thanks @herndlm!getNativeExprType
(phpstan/phpstan-src@222676e)Function signature fixes 🤖
libxml_get_errors()
(#3973), thanks @jack-worman!Internals 🔍
ProcessPromise::cancel()
from deferred canceller (phpstan/phpstan-src@df4c1f3)getPhpDocReturnTypeWithUnresolvableTemplateTypes
fromResolvedFunctionVariantWithCallable
(phpstan/phpstan-src@e3c76ad)v2.1.16
Compare Source
Improvements 🔧
@final
PHPDoc tag above properties (#3990), #12999, thanks @lpd-au!Bugfixes 🐛
preg_split()
function return type (#3757), thanks @malsuke!Function signature fixes 🤖
v2.1.15
Compare Source
Improvements 🔧
__toString
methods in(string)
cast (phpstan/phpstan-src@ce257d9)Bugfixes 🐛
new UnionType
(phpstan/phpstan-src@1044f11), #12512{min,max}()
(#3928), #12731, thanks @cs278!IterableType::equals()
withTemplateIterableType
(#3991), thanks @staabm!Function signature fixes 🤖
DOMNode::hasAttributes
(#3800), thanks @Niklan!Internals 🔍
instanceof *Type
in Rules classes (#3858), thanks @zonuexe!v2.1.14
Compare Source
Bugfixes 🐛
strict_types=0
(#3965), #12946, #12940, #12950, #12947, thanks @staabm!array_slice()
edge cases (#3959), thanks @herndlm!non-falsy-string
cannot be converted to0
(#3971), thanks @staabm!Internals 🔍
$parentNode = $parentNode
(#3938), thanks @samsonasik!v2.1.13
Compare Source
Major new features 🚀
Bleeding edge 🔪
@internal
symbols usage from outside their top namespace, #1178If 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 🔧
array_splice()
(#3947), thanks @herndlm!array_slice()
for normal arrays (#3946), #12880, thanks @herndlm!ConstantArrayType::sliceArray()
with non constant integer args (#3949), thanks @herndlm!Bugfixes 🐛
Scope::rememberConstructorScope()
should not remember the function scope (#3944), https://github.com/spaze/phpstan-disallowed-calls/issues/323, thanks @staabm!session_set_cookie_params
call with named arguments (phpstan/phpstan-src@72e37dc), #12934Internals 🔍
ConstantArrayType::shuffle()
(#3948), thanks @herndlm!ExtendedPropertyReflection::getName()
(phpstan/phpstan-src@ff198c9)v2.1.12
Compare Source
Improvements 🔧
discoveringSymbols
tip (#3929), https://github.com/phpstan/phpstan/discussions/12859, thanks @herndlm!Bugfixes 🐛
count()
(#3902), #12787, thanks @herndlm!matches[0]
type for regexes containing\K
(#3920), #12792, thanks @mvorisek!non-empty-array
for union ofisIterableAtLeastOnce()->yes()
(#3937), #12847, thanks @staabm!Function signature fixes 🤖
getopt()
function stub (#3655), #12103, thanks @janedbal!Internals 🔍
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 🔧
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.