Skip to content

Bump rector/rector from 2.0.18 to 2.1.0 #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 25, 2025

Bumps rector/rector from 2.0.18 to 2.1.0.

Release notes

Sourced from rector/rector's releases.

Released Rector 2.1

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 🎵

... (truncated)

Commits
  • d513dea Rector 2.1.0
  • fa6ebfa Updated Rector to commit 1f36a7f2d0a252bd0f8d3c1737576b4562c68fec
  • d332bb8 Rector 2.0.19
  • 4613632 Updated Rector to commit 4d47e8afcf17b3170c3fa39211e92ad527e645fa
  • 8259269 Updated Rector to commit c8d728c6bd1ff67f6ca38944050b1ae02bb2e74f
  • d3bbe6d Updated Rector to commit c6d9903ba34109b976319601913dc08ffb5c8efd
  • e26e06e Updated Rector to commit e6fb248f32da563c3046db1c6c81b52c4bfecda3
  • 76305df Updated Rector to commit 051e9336a50f80cee7f6ff87c1869df7a60f710d
  • 0111ddf Updated Rector to commit 60689ed3991175d516d7731d8bcfea4e9e62dbb7
  • e21c061 Updated Rector to commit 274fabbe8b57529523a57517a4700df811abe871
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [rector/rector](https://github.com/rectorphp/rector) from 2.0.18 to 2.1.0.
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](rectorphp/rector@2.0.18...2.1.0)

---
updated-dependencies:
- dependency-name: rector/rector
  dependency-version: 2.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Jun 25, 2025
@jerowork jerowork merged commit 0cc112c into main Jun 27, 2025
3 checks passed
@jerowork jerowork deleted the dependabot/composer/rector/rector-2.1.0 branch June 27, 2025 06:32
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 php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant