Skip to content

chore(deps): Update dependency rector/rector to v2.8.5 - #341

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/rector-rector-2.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/rector-rector-2.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
rector/rector (source) 2.8.4 → 2.8.5 age confidence

Release Notes

rectorphp/rector (rector/rector)

v2.8.5: Released Rector 2.8.5

Compare Source

Bugfixes and safer reprints 🐛

This release is mostly about bugfixes - an infinite loop fix in docblock return types, kept ternary parentheses on null coalescing, more precise changed_files in JSON output, and several new skips for dead code and PHP 8.4 rules. On the extension side, PHPUnit AddDoesNotPerformAssertionToNonAssertingTestRector is now faster and more precise.


Bugfixes 🐛

  • [TypeDeclarationDocblocks] Skip invalid @return tag to fix infinite loop in DocblockReturnArrayFromDirectArrayInstanceRector (#​8918)
  • [ChangesReporting] List only changed files in JSON changed_files (#​8917) Thanks @​gvieira18
  • [Core] Drop file positions on reprinted nodes copied from another file (#​8928)
  • Preserve ternary fallback parentheses in new coalesces (#​8927) Thanks @​smotim
  • [Php70] Keep inner ternary parentheses on TernaryToNullCoalescingRector (#​8921)
  • [Php55] Handle variable interpolated in pattern on PregReplaceEModifierRector (#​8922)
  • [Php84] Skip variable modified in condition on ForeachToArrayAllRector, ForeachToArrayAnyRector, ForeachToArrayFindRector and ForeachToArrayFindKeyRector (#​8925)
  • [DeadCode] Skip conditional return type on RemoveUselessReturnTagRector (#​8924) Thanks @​APX403
  • [DeadCode] Skip private methods used as callables on RemoveUnusedPrivateMethodParameterRector (#​8923) Thanks @​phinor
  • [CodingStyle] Skip closure with rebound $this on ArrowFunctionDelegatingCallToFirstClassCallableRector and ClosureDelegatingCallToFirstClassCallableRector (#​8931)

Performance Improvements 🚀

  • Remove usage of CloningVisitor on AstResolver (#​8861)

Internals ⚙️

  • [Printer] Remove unneeded BetterStandardPrinter::pStmt_FileNode() (#​8904)
  • [CodingStyle] Cover Doctrine/Symfony aliased names on import names with real stubs (#​8932, #​8933)

rector-symfony 🎵

  • [Symfony61] Do not add #[AsCommand] without a name in CommandConfigureToAttributeRector (#​1102) Thanks @​kix
  • Skip first-class callable in CommandConfigureToAttributeRector (#​1104)

rector-phpunit 🟢

  • [PHPUnit90] Handle named and unpacked preg_match() args and skip non-literal expected value in AssertRegExpRector (#​820, #​819) Thanks @​alies-dev
  • [PHPUnit100] Add willReturnOnConsecutiveCalls() variables to closure use() in WithConsecutiveRector (#​821)
  • [PHPUnit120] Skip mocks configured through an alias in ExpressionCreateMockToCreateStubRector (#​823) Thanks @​bbrala
  • [PHPUnit60] Follow parent::test() calls in AddDoesNotPerformAssertionToNonAssertingTestRector (#​826) Thanks @​bbrala
  • [PHPUnit60] Count expectUserDeprecationMessage() as assert, skip test methods in abstract classes and skip tests in classes with own asserting lifecycle methods in AddDoesNotPerformAssertionToNonAssertingTestRector (#​825, #​828, #​831)
  • [PHPUnit60] Speed up AddDoesNotPerformAssertionToNonAssertingTestRector - change node to Class_, cache containsAssertCall() per node and never parse PHPUnit and Symfony base test case methods (#​830, #​829, #​833, #​824)

rector-downgrade-php ⬇️

  • Fix class constant spread from other class crash on DowngradeArraySpreadRector (#​423)

Configuration

📅 Schedule: (UTC)

  • 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 is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependency An issue or pull request targeting dependencies. label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency An issue or pull request targeting dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants