Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 6, 2025

Updates the requirements on rector/rector to permit the latest version.

Release notes

Sourced from rector/rector's releases.

Released Rector 2.2

This release includes dozens of fixes, new PHP and Type Declaration rules, many Symfony Console rules improvements...

...and one brand new set: type coverage docblocks 🎉 🎉 🎉

Read the gist on our blog - Rector 2.2: New rules for Array Docblocks

New Features and Improvements 🚀

New rules for Type Coverage Docblocks:

  • Add AddReturnDocblockForCommonObjectDenominatorRector (#7249)
  • Add AddParamArrayDocblockFromDimFetchAccessRector (#7253)
  • Add AddParamArrayDocblockFromDataProviderRector (#7257)
  • Add ClassMethodArrayDocblockParamFromLocalCallsRector (#7259)
  • Add AddReturnDocblockDataProviderRector (#7266)
  • Add fixture for data provider return options (#7268)
  • Add AddReturnDocblockForArrayDimAssignedObjectRector (#7302)
  • Add DocblockVarArrayFromPropertyDefaultsRector (#7311)
  • Add DocblockVarArrayFromGetterReturnRector (#7313)
  • Add AddReturnDocblockForJsonArrayRector (#7320)
  • Add AddParamArrayDocblockFromAssignsParamToParamReferenceRector (#7323)
  • [dx] add withTypeCoverageDocblockLevel() (#7363)

  • [dead-code] Add RemoveUnusedVariableUseRector (#7430)
  • [Php 8.5] Add WakeupToUnserializeRector (#7242), Thanks @​arshidkv12!
  • [code-quality] Add RepeatedOrEqualToInArrayRector (#7400)
  • [Php 8.1] Add NullToStrictIntPregSlitFuncCallLimitArgRector (#7240)
  • feat: add greater and smaller support to StrlenZeroToIdenticalEmptyStringRector (#7329), Thanks @​calebdw!
  • [TypeDeclaration] Allow empty array to native array on AddMethodCallBasedStrictParamTypeRector (#7342)
  • [TypeDeclaration] Allow named arg on AddArrayFunctionClosureParamTypeRector (#7397)
  • [type-declarations] Add KnownMagicClassMethodTypeRector (#7419)
  • Add rector to migrate __sleep() to __serialize() (#7212), Thanks @​arshidkv12!
  • [type-declaration] Add AddParamFromDimFetchKeyUseRector (#7424)
  • Add first class callable support to CallUserFuncArrayToVariadicRector (#7428)

Bugfixes 🐛

  • fix: remove empty construct when parent has no construct (#7239), Thanks @​calebdw!
  • fix: overly strict ArraySpreadInsteadOfArrayMergeRector (#7247), Thanks @​calebdw!
  • [CodingStyle] Skip non-native array type on PHP 7.4 for ArraySpreadInsteadOfArrayMergeRector (#7248)
  • fix: FunctionLikeToFirstClassCallableRector (#7265), Thanks @​calebdw!
  • fix: EnumCaseToPascalCaseRector skips existing pascal case (#7264), Thanks @​calebdw!
  • [CodeQuality] Skip init not empty array on InlineArrayReturnAssignRector (#7276)

... (truncated)

Commits
  • 3c5a641 Rector 2.2.0
  • 479e63a Updated Rector to commit fe7432b6d8cc7bd8237d77a0e6ad38ca5c343714
  • 40d004d Updated Rector to commit d948383ff339cf1ff7ca6a9ffadbec9943941b24
  • 0195c9e Updated Rector to commit 57b1e5c299f89880e57c8d1799b25d0dd643f8ff
  • 0db8267 Updated Rector to commit 8d22cedbbd93a4945cf0fd97da07c486488b533a
  • 0d5db11 Updated Rector to commit 3b1717892dd2502a9ecdd67c8e498fe118ed687a
  • 16058b7 Updated Rector to commit 0279c0001f2d803df386747d4aa45588235dd58a
  • 9d3677b Updated Rector to commit 0e2401b63e331f8a8dcdab75e4c18ca6e1ec06c8
  • 38805fd Updated Rector to commit 4a642a1981acee33f5a477050f89c82e07d6bb02
  • 7140bec Updated Rector to commit 03df84917444112f3256754b3e8f94caf8cba0be
  • Additional commits viewable in compare view

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)

Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version.
- [Release notes](https://github.com/rectorphp/rector/releases)
- [Commits](rectorphp/rector@2.1.7...2.2.0)

---
updated-dependencies:
- dependency-name: rector/rector
  dependency-version: 2.2.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update external dependencies php Pull requests that update Php code labels Oct 6, 2025
@ddevsr
Copy link
Collaborator

ddevsr commented Oct 6, 2025

@samsonasik Miss variable name in [dead-code] Add RemoveUnusedVariableUseRector (#7430) on release

@samsonasik
Copy link
Member

2.2.1 just released, this can wait for 2.2.1 trigger dependabot and I can re-run the rector.

@samsonasik
Copy link
Member

handled at #9747

@samsonasik samsonasik closed this Oct 7, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 7, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@samsonasik samsonasik deleted the dependabot/composer/rector/rector-2.2.0 branch October 7, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update external dependencies php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants