chore(deps): bump rector/rector from ^2.6.5 to ^2.6.7 (main) - #13690
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
requested review from
ChristophWurst,
GretaD and
kesselb
as code owners
September 16, 2026 00:37
renovate
Bot
force-pushed
the
renovate/main-rector-rector-2.x
branch
from
September 16, 2026 18:07
8dbbaad to
0cf09bd
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
Bot
force-pushed
the
renovate/main-rector-rector-2.x
branch
from
September 21, 2026 00:23
0cf09bd to
93a3ab1
Compare
This branch has not been deployed
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
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:
^2.6.5→^2.6.7Release Notes
rectorphp/rector (rector/rector)
v2.6.7: Released Rector 2.6.7Compare Source
Agentic Experience
This release improves Rector for automated, CI and non-interactive workflows: validate configuration without processing files, limit the amount of changes per run, select multiple rules at once, and get more useful machine-readable output.
^2.2.14and PHP-Parser to^5.9, regenerate preload (#8491)New
validate-configcommand (#8450, #8452)New
validate-configcommand checksrector.phpfor configuration issues without processing any source files.It reports deprecated rules and configuration, invalid skips, duplicated rule registrations and other config hygiene issues. A valid config exits with
0, while detected issues exit with1, so the command can be used directly as a CI gate.For machine-readable output:
{ "valid": true, "issue_count": 0 }Limit a run with
--max-changes(#8449)New
--max-changesoption lets automated runs process changes in smaller batches:The limit counts applied rule changes rather than files. The current file is always finished before Rector stops, so the final number may be slightly above the requested limit.
Run multiple rules with
--only(#8451)--onlycan now be repeated to run several selected rules in a single pass:vendor/bin/rector process \ --only=App\\Rector\\FooRector \ --only=App\\Rector\\BarRectorA single
--onlycontinues to work as before.Per-line rule attribution in JSON output (#8448)
JSON output now includes a
changeslist with the Rector rule and source line for every applied change:{ "changes": [ { "rector": "Rector\\Php80\\Rector\\Identical\\StrStartsWithRector", "line": 38 } ] }The existing
applied_rectorsfield remains unchanged for backward compatibility.Cleaner non-interactive output
Non-interactive runs are now quieter and safer:
--ansi(#8453)rector.phpwhen input is non-interactive (#8454)Sets
DirnameDirConcatStringToDirectStringPathRectorto the code-quality set (#8470)NarrowBoolDocblockReturnTypeRectorto the type-declaration-docblocks set (#8484)Bugfixes 🐛
CompleteDynamicPropertiesRector: skip when a not-autoloaded ancestor may already declare the property (#8441)TypeDeclarationDocblocks: restrict array docblock inference to safer/private cases and avoid narrowing properties with incompatible assignment shapes (#8435, #8436, #8437, #8442)DocblockVarArrayFromPropertyDefaultsRector: widen empty nested array defaults tomixed[]instead ofnever[](#8439, #8474)DocblockReturnArrayFromDirectArrayInstanceRector: skip empty array returns instead of producing an overly narrowarray{}docblock (#8434)IfToNullCoalescingAssignRector: preserve comments inside the convertedif(#8443)RemoveDeadIfBlockRector: keep emptyifwithelseifand trailingelsewhere rewriting would change behavior (#8446)RemoveParentDelegatingClassMethodRector: keep delegating methods carrying annotations such as@Route(#8459)StrContainsRector: skip empty string needles to avoid behavior changes (#8460)RemoveDeadCatchRector: keep rethrowing catches before catch-allThrowable/Exceptionhandlers (#8462)SimplifyUselessVariableRector: preserve variables referenced by commented-out code and stop folding compound assignments into returns (#8468)ReplaceArgumentDefaultValueRector: avoid re-applying already migrated imported class constants and correctly report applied changes (#8475)ForeachToArrayAnyRector: do not dropelseiforelsebranches when converting aforeach(#8480)Option::SOURCEfrom the actually resolved paths in regular Rector runs (#8424)Deprecations 💀
--rules-summary- use--output-format=json, which provides applied rules together with files and lines (#8457)DynamicDocBlockPropertyToNativePropertyRector- could change a public-by-design@propertyinto a private native property (#8470)FluentSettersToStandaloneCallMethodRectorandRemoveReturnThisFromSetterClassMethodRector- fluent API semantics are too use-case dependent for a generic transformation (#8473)ListSwapArrayOrderRector- can turn validlist()assignments into broken code; removed from PHP 7.0 sets (#8477)RenameDeprecatedMethodCallRector- inferring replacement methods from free-text@deprecateddescriptions is too risky; explicit rename rules are more predictable (#8485)rector-doctrine 🟠
TypedPropertyFromToOneRelationTypeRector: skip untyped parent property overrides (#520)TypedPropertyFromColumnTypeRector: skip untyped parent property overrides (#521)TypedPropertyFromColumnTypeRector: fix numeric defaults fordecimal/bigintcolumns (#522)TypedPropertyFromColumnTypeRector: make generated property type nullable when anulldefault is present (#523)rector-phpunit 🟢
RemoveNamedArgsInDataProviderRector(#782)rector-symfony 🎵
EnableValidationAttributesRectorinto the composer-based upgrade path (#1065)ConsoleExecuteReturnIntRector: correctly report changes when rewriting an existing return (#1064)rector-downgrade-php ⬇️
DowngradeNeverTypeDeclarationRector: supportneverreturn types on arrow functions (#397)DowngradeReflectionMethodHasPrototypeRectorforReflectionMethod::hasPrototype()when downgrading below PHP 8.2 (#398)v2.6.6: Released Rector 2.6.6Compare Source
File selection
--filteroption to narrow processed files (#8419)New
--filteroption keeps only files whose path matches all given patterns. Repeat the option to require several patterns at once, handy for scoping a run to a subtree or a naming convention without editing config paths.Before: process every file under the given paths. After: process only files matching all
--filterpatterns.Bugfixes 🐛
RectorConfig::tag()as a no-op BC layer (#8431)TypeDeclarationDocblocks: fix invalid array-in-key docblock when narrowing long array unions (#8430)BetterPhpDocParser: keep import used only in an annotation array key (#8429)RenameVariableToMatchMethodCallReturnTypeRector: fix partial rename with same-named nested arrow param (#8428)ArrayFirstLastRector: skip nested compound assignment (#8425)ReturnTypeFromStrictNewArrayRector: add doc return type only for list and generic arrays (#8423), skip noisy array-shape union return docblock (#8422)Extension packages
rector-phpunit 🟢
AllowMockObjectsForDataProviderRector: skip dynamic method call (#781)AssertEmptyNullableObjectToAssertInstanceofRector: skipassertNull/assertEmpty(#780)AddSeeTestAnnotationRector: skip existing imported or short@seeannotation (#779)rector-downgrade-php ⬇️
DowngradeSetAccessibleReflectionPropertyRector: handlegetProperties()/getMethods()loop (#396)DowngradeHashAlgorithmXxHashRector: skipPHP_VERSION_IDguardedhash()calls (#394)Internal / cleanup
mspirkov/yii2-rectorlink to README (#8427)??expression (#8421)Configuration
📅 Schedule: (in timezone Europe/Vienna)
🚦 Automerge: Enabled.
♻ 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.