Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 25, 2025

This PR contains the following updates:

Package Change Age Confidence
rector/rector (source) ^2.0.18 -> ^2.1.0 age confidence

Release Notes

rectorphp/rector (rector/rector)

v2.1.0: Released Rector 2.1

Compare Source

This release comes with new PHP 8.4 rules and 2 new config options, that make rules more powerful 💪


New Features 🥳

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 --kaizen option 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 🐛

  • [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 🎵

  • fix to type arg name (#​800)
  • [jms] Add AccessorAnnotationToAttributeRector (#​799)
  • [jms] Add custom AccessTypeAnnotationToAttributeRector to handle annotation flip to attribute correctly (#​798)

rectorphp/rector-doctrine 🟠

  • [typed-collections] Add RemoveNullFromInstantiatedArrayCollectionPropertyRector (#​452)
  • skip behats (#​451)
  • skip RemoveIfInstanceofCollectionRector in tests (#​450)
  • add generic union support (#​448)
  • add param / return test fixture (#​447)
  • add docblock support to NarrowArrayCollectionToCollectionRector (#​446)
  • initialize default array even for non-entity-property collections (#​445)
  • remover default null (#​444)
  • add local call setter support (#​443)
  • Add intersection support to NarrowPropertyUnionToCollectionRector (#​442)
  • remove nullable property type (#​441)
  • Add native return type declaration support to NarrowReturnUnionToCollectionRector (#​440)
  • add array-filter to ArrayMapOnCollectionToArrayRector (#​439)
  • [typed-collections] Add CurrentOnCollectionToArrayRector (#​438)
  • [typed-collections] Add RemoveUselessIsEmptyAssignRector (#​437)
  • add boolean and not null case (#​436)
  • skip it (#​435)
  • [typed-collections] Add RemoveIfCollectionIdenticalToNullRector (#​434)
  • add native property type support to NarrowPropertyUnionToCollectionRector (#​433)
  • add union null type support to RemoveNullFromNullableCollectionTypeRector (#​431)
  • add nullable property doclbock support to RemoveNullFromNullableCollectionTypeRector (#​430)
  • [typed-collections] Add ArrayOffsetSetToSetCollectionCallRector (#​429)
  • include message as well (#​428)
  • add static call support to AssertSameCountOnCollectionToAssertCountRector (#​427)
  • keep args in RemoveNullsafeOnCollectionRector (#​426)
  • [typed-collections] Add AssertSameCountOnCollectionToAssertCountRector (#​425)
  • [typed-collections] Add RemoveAssertNotNullOnCollectionRector (#​424)
  • [typed-collections] Add AssertNullOnCollectionToAssertEmptyRector (#​423)

v2.0.19

Compare Source


Configuration

📅 Schedule: Branch creation - Every 3 hours, between 06:00 AM and 10:59 PM, Monday through Friday ( * 6-22/3 * * 1-5 ), Every 3 hours, between 12:00 PM and 11:59 PM, only on Sunday and Saturday ( * 12-23/3 * * 0,6 ) in timezone Europe/Amsterdam, 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 Dependencies 📦 Pull requests that update a dependency file PHP 🐘 Hypertext Pre Processor labels Jun 25, 2025
@renovate renovate bot requested a review from WyriHaximus as a code owner June 25, 2025 19:01
Copy link

github-actions bot commented Jun 25, 2025

🏰 Composer Production Dependency changes 🏰

Prod Packages Operation Base Target Link
rector/rector Upgraded 2.0.18 2.1.0 Compare

@github-actions github-actions bot modified the milestone: 7.6.0 Jun 25, 2025
@renovate renovate bot force-pushed the renovate/rector-rector-2.x branch 2 times, most recently from 69a5c65 to cf23909 Compare July 5, 2025 17:19
@renovate renovate bot force-pushed the renovate/rector-rector-2.x branch from cf23909 to 798341e Compare July 5, 2025 17:30
@WyriHaximus WyriHaximus merged commit 378cafe into master Jul 5, 2025
75 checks passed
@WyriHaximus WyriHaximus deleted the renovate/rector-rector-2.x branch July 5, 2025 17:37
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 JSON 👨‍💼 PHP 🐘 Hypertext Pre Processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant