Skip to content

[TASK] Update rector/rector to v2.0.18#80

Merged
renovate[bot] merged 1 commit into
mainfrom
renovate/patch-rector-packages
Jun 11, 2025
Merged

[TASK] Update rector/rector to v2.0.18#80
renovate[bot] merged 1 commit into
mainfrom
renovate/patch-rector-packages

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jun 11, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rector/rector (source) 2.0.17 -> 2.0.18 age adoption passing confidence

Release Notes

rectorphp/rector (rector/rector)

v2.0.18: Released: Rector 2.0.18

Compare Source

New Features 🥳

  • Bump to PHP-Parser ^5.5.0 (#​6946)
  • [DeadCode] Add RemoveArgumentFromDefaultParentCallRector (#​6949)
  • [DeadCode] Add RemoveDeadCatchRector rule (#​6939), Thanks @​P3gucka!

Bugfixes 🐛

  • [Php80] Add more exact Expr node that always bool for switch(true) usage on ChangeSwitchToMatchRector (#​6965)
  • [Php80] Prevent adding empty return when stringable always throws (#​6968), Thanks @​Mika-!
  • [php 8.0] Check if class is an attribute in AnnotationToAttributeRector, to avoid non-attribute bug (#​6954)
  • [Transform] Fix FQCN usage on new name on MergeInterfacesRector (#​6956)
  • Rectify (#​6957)
  • [Printer] Skip change new line as space on anonymous class on print (#​6958)
  • [Printer] Use regex string new space detection for anonymous class (#​6959)
  • [Php80] Handle dynamic bool expr on ChangeSwitchToMatchRector (#​6961)
  • [Php80] Do not change to match(true) on defined case cond on ChangeSwitchToMatchRector (#​6962)
  • [Php80] Do not change to match(true) on variable from param on case cond on ChangeSwitchToMatchRector (#​6963)
  • Fix fixture file name (#​6964)
  • [Renaming] [Symfony 7.0] Skip ClassConstFetch that rename its ->class to Interface that constant not exists in new interface (#​6966)
  • Fix stub (#​6967)
  • [DeadCode] Clean up useless union StmtsAwareInterface|ClassMethod on TerminatedNodeAnalyzer (#​6969)
  • [Php80] Handle has silent void on StringableForToStringRector (#​6970)
  • [PostRector] Clean up rename process on ClassRenamingPostRector (#​6971)
  • [DeadCode] Early check skip no extends on RemoveDefaultArgumentFromParentCallRector (#​6950)
  • [DeadCode] Allow remove createMock method call on RemoveUnusedVariableAssignRector (#​6951)
  • [DeadCode] Skip when next catch is parent class exception with special treatment over just throw on RemoveDeadCatchRector (#​6952)

rectorphp/rector-symfony 🎵

  • [Symfony 7.3] Handle commands without configure method in InvokableCommandInputAttributeRector (#​797), Thanks @​gharlan
  • [Symfony 7.3] Handle fluent call addArgument and addOption on InvokableCommandInputAttributeRector (#​795)
  • Twig attributes: add required first param (#​793), Thanks @​gharlan
  • Fix namespace of console Option attribute (#​792), Thanks @​gharlan
  • fix: Normalize variable names by replacing hyphens with underscores in Symfony73 command argument and option processing (#​790), Thanks @​antoniovj1
  • remove return tags in TemplateAnnotationToThisRenderRector as no longer needed (#​788)
  • return array if is array type in TemplateAnnotationToThisRenderRector (#​786)
  • Bump to php-parser 5.5.0 and update fixture attributes usage (#​784)

rectorphp/rector-doctrine 🟠

  • [typed-collections] Add RemoveNullsafeOnCollectionRector (#​420)
  • skip assign of New_ to CollectionParamTypeSetterToCollectionPropertyRector (#​419)
  • fix reprint of type in CollectionSetterParamNativeTypeRector (#​418)
  • Various improvements in typed-collections set (#​417)
  • Skip RemoveNullFromNullableCollectionTypeRector if not exactly 1 param or in tests (#​416)
  • [typed-collections] allow 2nd+ param to be nullable in CollectionSetterParamNativeTypeRector as most likely null can be passed as non-setter (#​415)
  • cleanup redundant fixtures, single rule (#​414)
  • [Dbal40] Skip different object on ExecuteQueryParamsToBindValueRector (#​413)
  • [dbal 4.0] Add ExecuteQueryParamsToBindValueRector (#​412)
  • [dbal 4.0] Add deprecated PDO class to enum like (#​411)
  • [dbal 4.2] Add AddArrayResultColumnNamesRector (#​410)

rectorphp/rector-downgrade-php ⬇️

  • [DowngradePhp73] Real patch for previous node token just swapped with trailing comma and named argument (take 2) (#​288)
  • [Test] Add more test fixture for downgrade named argument with trailing comma (#​287)
  • [Down to PHP 7.2] Handle download named argument with trailing comma (#​285)

Configuration

📅 Schedule: Branch creation - Monday through Friday ( * * * * 1-5 ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.

| datasource | package       | from   | to     |
| ---------- | ------------- | ------ | ------ |
| packagist  | rector/rector | 2.0.17 | 2.0.18 |
@renovate renovate Bot added the dependencies Updates project dependencies label Jun 11, 2025
@renovate renovate Bot enabled auto-merge (squash) June 11, 2025 14:50
@renovate renovate Bot merged commit ab82225 into main Jun 11, 2025
11 checks passed
@renovate renovate Bot deleted the renovate/patch-rector-packages branch June 11, 2025 14:50
@coveralls
Copy link
Copy Markdown
Collaborator

Pull Request Test Coverage Report for Build 15588205666

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.619%

Totals Coverage Status
Change from base Build 15526077037: 0.0%
Covered Lines: 164
Relevant Lines: 168

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Updates project dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant