Skip to content

chore(deps): update dependency rector/rector to ^2.4.2 (master) - #1106

Merged
renovate[bot] merged 1 commit into
masterfrom
renovate/master-rector-rector-2.x
Apr 24, 2026
Merged

renovate[bot] merged 1 commit into
masterfrom
renovate/master-rector-rector-2.x

Conversation

@renovate

@renovate renovate Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
rector/rector (source) ^2.3 → ^2.4.2 age confidence

Release Notes

rectorphp/rector (rector/rector)

v2.4.2: Released Rector 2.4.2

Compare Source

New Features 🥳

  • Add some symfony/polyfill support (#​7965), Thanks @​sreichel!
  • [DeadCode] Allow remove useless @​ var on aliased object on RemoveUselessVarTagRector (#​7967)

Bugfixes 🐛

  • [Php81] Handle crash on normal array with variadic inside class on ArrayToFirstClassCallableRector (#​7966)
  • [CodeQuality] Skip possibly undefined variable on CoalesceToTernaryRector (#​7968)
  • [Php70] Allow is_null() conversion on TernaryToNullCoalescingRector with parentheses handling (#​7969)
  • Bump to PHPStan ^2.1.47 (#​7970)
  • Bump to PHPStan ^2.1.48 (#​7971)

rectorphp/rector-symfony 🎵

  • Fix unit test due to new PHPStan release (#​931)

v2.4.1: Released Rector 2.4.1

Compare Source

New Features 🥳


Bugfixes 🐛

  • [CodeQuality] Skip with HTML on CompleteMissingIfElseBracketRector (#​7952)
  • [CodeQuality] Handle with assign on SimplifyIfElseToTernaryRector (#​7951)
  • [CodeQuality] Skip with HTML on TernaryFalseExpressionToIfRector (#​7954)
  • [automated] Apply Coding Standard (#​7955)
  • Make compatible with PHPStan 2.1.x-dev for ObjectType::equals() change behaviour (#​7956)
  • [AutoImport] Handle FQCN in/not in use on auto import + remove unused import as prefix = suffix (#​7957)
  • perf: use hash map for installed packages (#​7878), Thanks @​calebdw!
  • [ChangesReporting][Alternative] Collect changed_files on --no-diffs with json output with use of JsonOutputFactory (#​7821)
  • fix: OOM crash in RemoveUnusedVariableAssignRector (#​7964), Thanks @​calebdw!

Deprecations 💀

  • [Php81] Deprecate NewInInitializerRector as depends on context (#​7913)
  • [deprecation] deprecate file, use getFile() instead (#​7962)

v2.4.0: Released Rector 2.4.0

Compare Source

New Features 🥳


Bugfixes 🐛

  • [Php85] Do not convert to pipe on use directly of spread operator on NestedFuncCallsToPipeOperatorRector (#​7938)
  • [Console] Allow short command "p" on ProcessCommand (#​7931)
  • [Arguments] Skip self class const fetch inside this class target replacement on ReplaceArgumentDefaultValueRector (#​7940)
  • [CodeQuality] Hnadle with negation binary op previous if on CombineIfRector (#​7945)
  • [CodingStyle] Skip by reference required params on call inside on ArrowFunctionDelegatingCallToFirstClassCallableRector (#​7949)

Removed 💀

  • [DeadCode] Skip pipe operator on RemoveDeadStmtRector (#​7941)
  • [DeadCode] Handle crash on multi elseif on RemoveDeadIfBlockRector (#​7946)
  • [DeadCode] Skip with assign to call with target has #[NoDiscard] attribute on RemoveUnusedVariableAssignRector (#​7950)

rectorphp/rector-symfony 🎵

  • [CodeQuality] Handle different parameter type same name used on ControllerMethodInjectionToConstructorRector (#​929)
  • [CodeQuality] Skip used by static closure use on ControllerMethodInjectionToConstructorRector (#​928)
  • [Symfony61] Skip non static external class callable on MagicClosureTwigExtensionToNativeMethodsRector (#​927), Thanks @​wuchen90

rectorphp/rector-doctrine 🟠

  • Fix infinite loop check instanceof name check to use Name class (#​481)

rectorphp/rector-phpunit 🟢

  • [PHPunit 9] Move AssertRegExpRector to phpunit 90 set with refactor to use assertMatchesRegularExpression/assertDoesNotMatchRegularExpression (#​667)
  • [PHPUnit 9] Rename assertRegExp/assertNotRegExp to assertMatchesRegularExpression/assertDoesNotMatchRegularExpression on phpunit 90 set (#​666)
  • Fix assert PHPStan on ConfiguredMockEntityToSetterObjectRector (#​665)

Configuration

📅 Schedule: (in timezone Europe/Vienna)

  • Branch creation
    • "before 5am on thursday"
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • 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 dependencies Pull requests that update a dependency file label Apr 23, 2026
@renovate
renovate Bot enabled auto-merge (squash) April 23, 2026 15:54
@renovate
renovate Bot requested a review from ChristophWurst April 23, 2026 18:00
@renovate
renovate Bot merged commit cf70daf into master Apr 24, 2026
28 of 29 checks passed
@renovate
renovate Bot deleted the renovate/master-rector-rector-2.x branch April 24, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants