Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps rector/rector from 2.1.7 to 2.2.0.

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 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.1.7 to 2.2.0.
- [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
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Oct 6, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 7, 2025

Superseded by #80.

@dependabot dependabot bot closed this Oct 7, 2025
@dependabot dependabot bot deleted the dependabot/composer/rector/rector-2.2.0 branch October 7, 2025 16:11
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.

0 participants