chore(deps): bump rector/rector from 2.8.4 to 2.8.5
Bumps rector/rector from 2.8.4 to 2.8.5.
Release notes
Sourced from rector/rector's releases.
Released Rector 2.8.5
Bugfixes and safer reprints :bug:
This release is mostly about bugfixes - an infinite loop fix in docblock return types, kept ternary parentheses on null coalescing, more precise
changed_filesin JSON output, and several new skips for dead code and PHP 8.4 rules. On the extension side, PHPUnitAddDoesNotPerformAssertionToNonAssertingTestRectoris now faster and more precise.Bugfixes :bug:
- [TypeDeclarationDocblocks] Skip invalid
@returntag to fix infinite loop inDocblockReturnArrayFromDirectArrayInstanceRector(#8918)- [ChangesReporting] List only changed files in JSON
changed_files(#8917) Thanks@gvieira18- [Core] Drop file positions on reprinted nodes copied from another file (#8928)
- Preserve ternary fallback parentheses in new coalesces (#8927) Thanks
@smotim- [Php70] Keep inner ternary parentheses on
TernaryToNullCoalescingRector(#8921)- [Php55] Handle variable interpolated in pattern on
PregReplaceEModifierRector(#8922)- [Php84] Skip variable modified in condition on
ForeachToArrayAllRector,ForeachToArrayAnyRector,ForeachToArrayFindRectorandForeachToArrayFindKeyRector(#8925)- [DeadCode] Skip conditional return type on
RemoveUselessReturnTagRector(#8924) Thanks@APX403- [DeadCode] Skip private methods used as callables on
RemoveUnusedPrivateMethodParameterRector(#8923) Thanks@phinor- [CodingStyle] Skip closure with rebound
$thisonArrowFunctionDelegatingCallToFirstClassCallableRectorandClosureDelegatingCallToFirstClassCallableRector(#8931)Performance Improvements :rocket:
- Remove usage of
CloningVisitoronAstResolver(#8861)Internals :gear:
- [Printer] Remove unneeded
BetterStandardPrinter::pStmt_FileNode()(#8904)- [CodingStyle] Cover Doctrine/Symfony aliased names on import names with real stubs (#8932, #8933)
rector-symfony :musical_note:
- [Symfony61] Do not add
#[AsCommand]without a name inCommandConfigureToAttributeRector(#1102) Thanks@kix- Skip first-class callable in
CommandConfigureToAttributeRector(#1104)rector-phpunit :green_circle:
- [PHPUnit90] Handle named and unpacked
preg_match()args and skip non-literal expected value inAssertRegExpRector(#820, #819) Thanks@alies-dev- [PHPUnit100] Add
willReturnOnConsecutiveCalls()variables to closureuse()inWithConsecutiveRector(#821)- [PHPUnit120] Skip mocks configured through an alias in
ExpressionCreateMockToCreateStubRector(#823) Thanks@bbrala- [PHPUnit60] Follow
parent::test()calls inAddDoesNotPerformAssertionToNonAssertingTestRector(#826) Thanks@bbrala- [PHPUnit60] Count
expectUserDeprecationMessage()as assert, skip test methods in abstract classes and skip tests in classes with own asserting lifecycle methods inAddDoesNotPerformAssertionToNonAssertingTestRector(#825, #828, #831)- [PHPUnit60] Speed up
AddDoesNotPerformAssertionToNonAssertingTestRector- change node toClass_, cachecontainsAssertCall()per node and never parse PHPUnit and Symfony base test case methods (#830, #829, #833, #824)
... (truncated)
Commits
bf2982eRector 2.8.5f1bb9a1Updated Rector to commit 9f30de4a6caa13615f9e4d20bbe5282aac52857555f2cdaUpdated Rector to commit 9f30de4a6caa13615f9e4d20bbe5282aac528575ed28610Updated Rector to commit 9f30de4a6caa13615f9e4d20bbe5282aac528575a6f5c21Updated Rector to commit 8dd83d8721a47df944c207778189daf6e5711a8eb5e9d1bUpdated Rector to commit a1fbcf3b97457ef3b2fcad3d50ccb2637999107957c53a5Updated Rector to commit a1fbcf3b97457ef3b2fcad3d50ccb26379991079e47aa88Updated Rector to commit a1fbcf3b97457ef3b2fcad3d50ccb2637999107968cbe74Updated Rector to commit a1fbcf3b97457ef3b2fcad3d50ccb263799910797ebfeceUpdated Rector to commit a1fbcf3b97457ef3b2fcad3d50ccb26379991079- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Summary by cubic
Updates rector/rector from 2.8.4 to 2.8.5, a patch release of bugfixes and safer reprints. phpstan/phpstan also moves from 2.3.5 to 2.3.6 via the same update.
Notes
- Removes
published-timeentries and dropsplugin-api-versionto 2.9.0 incomposer.lock; the lock file was refreshed with an older Composer version. - 2.8.5 fixes an infinite loop in docblock return types, preserves ternary parentheses on null coalescing, and adds several skips for dead code and PHP 8.4 rules.