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:
5.3.1
->5.4.0
1.12.7
->1.12.16
7.1.6
->7.2.1
7.1.6
->7.2.2
Release Notes
nikic/PHP-Parser (nikic/php-parser)
v5.4.0
Compare Source
Added
Property::isAbstract()
andProperty::isFinal()
methods.PropertyHook::isFinal()
method.Fixed
Param::isPromoted()
andParam::isPublic()
now returns true for parameters that have propertyhooks but no explicit visibility modifier.
PropertyHook::getStmts()
now correctly desugars shortset
hooks.set => $value
will beexpanded to
set { $this->propertyName = $value; }
. This requires thepropertyName
attributeon the hook to be set, which is now also set by the parser. If the attribute is not set,
getStmts()
will throw an error for short set hooks, as it is not possible to produce a correctdesugaring.
phpstan/phpstan (phpstan/phpstan)
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!v1.12.15
Compare Source
Bugfixes 🐛
new
with generic type with constructor in parent class (phpstan/phpstan-src@a063119), #8219, #2735array_merge
(#3770), #7857, #8632, #9559, thanks @herndlm!Internals 🔍
instanceof ConstantBooleanType
checks (#3771), thanks @staabm!v1.12.14
Compare Source
Fix
preg_match()
group containing start/end meta characters (#3740), #12297, thanks @staabm!v1.12.13
Compare Source
Improvements 🔧
get_defined_vars()
return type contains known variables (#3624), #11948, #11740, thanks @MartinMystikJonas!UnionType->isSuperTypeOfWithReason()
(#3692, #3713), thanks @staabm!IntersectionType->getEnumCases()
(#3695), thanks @staabm!MixedType::toArrayKey()
returnsBenevolentUnionType
(#3696)ClassAsClassConstantRule
(#3697), #10859, thanks @paulbalandan!FunctionCallParametersCheck
(#3734), thanks @staabm!MutatingScope::getNodeKey()
(#3736), thanks @staabm!Bugfixes 🐛
iterator_to_array
return type with generators (#3652), thanks @paulbalandan!#
comments in regex withx
modifier (#3735, #3739), #12242, thanks @staabm!Function signature fixes 🤖
DOMDocument::create*()
return types (#3737), #12278, thanks @staabm!Internals 🔍
Rule
andRuleTestCase
(#3698), thanks @paulbalandan!v1.12.12
Compare Source
Improvements 🔧
uppercase-string
PHPDoc type (#3613), thanks @pmjones!Bugfixes 🐛
sprintf
dynamic return type (#3640), #12065, thanks @VincentLanglet!static
return type in php-8-stubs (phpstan/phpstan-src@162f774), #12077non-empty-list
(#3682), #12131, thanks @herndlm!Function signature fixes 🤖
Closure::bind
andbindTo
return benevolent union with null (phpstan/phpstan-src@b049d8d)sha256
function definition (#3664), thanks @VincentLanglet!v1.12.11
Compare Source
Improvements 🔧
fidry/cpu-core-counter
(#3632), https://github.com/phpstan/phpstan/discussions/12026TypeCombinator::removeTruthy()
method (#3633), thanks @canvural!$a != ''
(#3304), thanks @thg2k!Bugfixes 🐛
self::
in a class attribute argument (phpstan/phpstan-src@3447391), #12011, #10314null
toarray_map(null, $a, $b)
(#3562), thanks @schlndh!ArrayType<mixed, X>
withcheckImplicitMixed
(level 10 in 2.0) (#3636), #12051, thanks @VincentLanglet!Function signature fixes 🤖
extract()
signature (#3512), thanks @VincentLanglet!get_defined_constants()
(#3635), thanks @thg2k!fgetcsv
acceptsnull
for$length
(#3077), thanks @staabm!v1.12.10
Compare Source
Bugfixes 🐛
for
endless loop detection (#3622), #11992, thanks @herndlm!v1.12.9
Compare Source
Improvements 🔧
@readonly
PHPDoc on the class as alternative to@immutable
(#3523), #11775, thanks @herndlm!Bugfixes 🐛
for
endless loops (#3573), #6807, #8463, #9374, thanks @herndlm!preg_match
greater than0
(#3612), #11293, thanks @staabm!void
return type in a union when the returned expr is originallyvoid
(phpstan/phpstan-src@80c1df2), #11980@phpstan-ignore
with trait in the same file (phpstan/phpstan-src@381c137), #11981Internals 🔍
v1.12.8
Compare Source
Improvements 🔧
Bugfixes 🐛
$this
in return type even in final classes (#3599), #11857, thanks @calebdw!E_DEPRECATED
from error_reporting (phpstan/phpstan-src@277e34b), #11937filterTypes()
(#3535), #11663, thanks @VincentLanglet!Function signature fixes 🤖
Imagick::writeImage(s)File
supportingformat
parameter (#3588), thanks @kingjia90!Internals 🔍
instanceof ConstantBooleanType
in loop analysis (#3577), #11913, thanks @herndlm!@api
to TypeExpr (#3601), thanks @ruudk!UnionType::filterTypes
(#3607), thanks @VincentLanglet!symfony/console (symfony/console)
v7.2.1
Compare Source
Changelog (symfony/console@v7.2.0...v7.2.1)
v7.2.0
Compare Source
v7.1.10
Compare Source
Changelog (symfony/console@v7.1.9...v7.1.10)
v7.1.8
Compare Source
v7.1.7
Compare Source
Changelog (symfony/console@v7.1.6...v7.1.7)
symfony/finder (symfony/finder)
v7.2.2
Compare Source
Changelog (symfony/finder@v7.2.1...v7.2.2)
==
as default operator inDateComparator
(@MatTheCat)v7.2.0
Compare Source
Changelog (symfony/finder@v7.2.0-RC1...v7.2.0)
v7.1.10
Compare Source
Changelog (symfony/finder@v7.1.9...v7.1.10)
==
as default operator inDateComparator
(@MatTheCat)Configuration
📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.