Bump rector/rector from 2.0.18 to 2.1.0
Merged
Number: #24
Type: Pull Request
State: Merged
Type: Pull Request
State: Merged
Author:
dependabot[bot]
Association: Contributor
Comments: 0
Association: Contributor
Comments: 0
Created:
June 24, 2025 at 11:08 PM UTC
(5 months ago)
(5 months ago)
Updated:
June 25, 2025 at 06:18 AM UTC
(5 months ago)
(5 months ago)
Merged:
June 25, 2025 at 06:18 AM UTC
(5 months ago)
by jerowork
(5 months ago)
by jerowork
Time to Close:
about 7 hours
Labels:
dependencies php
dependencies php
Description:
Bumps rector/rector from 2.0.18 to 2.1.0.
Release notes
Sourced from rector/rector's releases.
Released Rector 2.1
This release comes with new PHP 8.4 rules and 2 new config options, that make rules more powerful :muscle:
New Features :partying_face:
- [PHP 8.4] Implement array_find_key upgrade (#7008), Thanks
@xHeaven!- [PHP 8.4] Implement array_find upgrade (#7009), Thanks
@xHeaven!- [PHP 8.4] Implement array_all upgrade (#7011), Thanks
@xHeaven!- [PHP 8.4] Implement array_any upgrade (#7010), Thanks
@xHeaven!- [code-quality] add
TernaryImplodeToImplodeRector(#6994)In this release we also add 2 DX features to streamline upgrades:
- [DX] Add ->withTreatClassesAsFinal() on so can be used in typed rules (#6974)
- this extends more conservative rules to apply on classes that are not final
- [experimental] Add
--kaizenoption to apply only first X rules at a time (#6876)
- this option will apply first X rules; especially great to make upgrade steps small, but relevant - check the PR for more
Bugfixes :bug:
- [Php80] Skip non-abstract method trait on AddParamBasedOnParentClassMethodRector (#6992)
- [Php81] Skip has JMS attribute on ReadOnlyPropertyRector (#6979)
- [TypeDeclaration] Move JMS class string definition constant to ClassName value object (#6980)
- [PhpAttribute] Ensure count($attributeGroups) before loop to avoid repetitive annotation product only single AttributeGroup (#6985)
- [code-quality] use direct instanceof instead of dummy null, if nullable object type is known (#6987)
- Fix object type in TypedPropertyFromJMSSerializerAttributeTypeRector (#6989)
- ExplicitReturnNullRector: skip on goto (#6988), Thanks
@staabm!- fix invalid string property type without default in PropertyTypeFromStrictSetterGetterRector (#6993)
- [CodeQuality] Skip first class callable on TernaryImplodeToImplodeRector (#6997)
- Fix: Array Duplicated Key which is dynamic (#6999), Thanks
@peterfox!- [Php83] Ensure class->isAbstract() on FeatureFlags::treatClassesAsFinal() check (#7003)
- [TypeDeclaration] Handle crash on generic iterable on TypedPropertyFromJMSSerializerAttributeTypeRector (#7004)
- [TypeDeclaration] Use common has < string for detect iterable types (#7005)
- Covers scenario where func_get_args used in constructor (#7006), Thanks
@peterfox!- [DeadCode] Move Param used via variadic functions to ParamAnalyzer (#7016)
- [DeadCode] Skip used by unpack and named argument on RemoveUnusedPrivateMethodParameterRector (#6976)
- [DeadCode] Handle multiple default on RemoveArgumentFromDefaultParentCallRector (#6978)
- [DeadCode] Skip abstract method on RemoveUnusedPublicMethodParameterRector (#7002)
- [DeadCode] Allow named argument removal if argument position is equal with parameter position equal name on RemoveUnusedPrivateMethodParameterRector (#6977)
- [Php80] Skip used in finally on RemoveUnusedVariableInCatchRector (#6982)
- [DeadCode] Allow remove normal param that mix with property promotion on RemoveUnusedConstructorParamRector (#7017)
rectorphp/rector-symfony :musical_note:
... (truncated)
Commits
d513deaRector 2.1.0fa6ebfaUpdated Rector to commit 1f36a7f2d0a252bd0f8d3c1737576b4562c68fecd332bb8Rector 2.0.194613632Updated Rector to commit 4d47e8afcf17b3170c3fa39211e92ad527e645fa8259269Updated Rector to commit c8d728c6bd1ff67f6ca38944050b1ae02bb2e74fd3bbe6dUpdated Rector to commit c6d9903ba34109b976319601913dc08ffb5c8efde26e06eUpdated Rector to commit e6fb248f32da563c3046db1c6c81b52c4bfecda376305dfUpdated Rector to commit 051e9336a50f80cee7f6ff87c1869df7a60f710d0111ddfUpdated Rector to commit 60689ed3991175d516d7731d8bcfea4e9e62dbb7e21c061Updated Rector to commit 274fabbe8b57529523a57517a4700df811abe871- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
Commits:
1
1
Files Changed:
1
1
Additions:
+7
+7
Deletions:
-6
-6
Package Dependencies
Technical Details
| ID: | 2286921 |
| UUID: | 2616403511 |
| Node ID: | PR_kwDOOvDr6c6b8yY3 |
| Host: | GitHub |
| Repository: | jerowork/example-application-graphql-attribute-schema |
| Merge State: | Unknown |