sp-api-sdk
sp-api-sdk copied to clipboard
Bump rector/rector from 0.15.19 to 1.2.0 in /tools
Bumps rector/rector from 0.15.19 to 1.2.0.
Release notes
Sourced from rector/rector's releases.
Released Rector 1.2.0
New Rules :rocket:
- [Renaming] Add RenameAttributeRector (#6009)
- [TypeDeclaration] Add AddClosureUnionReturnTypeRector (#6033)
- [TypeDeclaration] Add AddClosureNeverReturnTypeRector (#6039)
- [Php71] Add MultiDimensionalArrayToArrayDestructRector (#6031), Thanks
@nikolicaleksa!- [TypeDeclaration] Add AddClosureReturnTypeFromStrictParamRector (#6044)
- [TypeDeclaration] Add AddClosureReturnTypeFromReturnCastRector (#6061)
- [TypeDeclaration] Add AddClosureReturnTypeFromStrictNativeCallRector (#6059)
New Features :partying_face:
- [DX] Add withAttributes(all) option, add PHPUnit and Doctrine code quality sets to withPreparedSets() (#6004)
- [DX] Add symfony code quality preset (#6008)
- [DX] Add
withDowngradeSets()to better target downgrades (#6015)- Add
alwaysconfig for EncapsedStringsToSprintfRector (#6050), Thanks@ruudk!- Add
only_direct_assignconfig for SimplifyUselessVariableRector (#6034), Thanks@ruudk!- Skip files with short <?= PHP tag as leads to invalid changes (#6068), (#6075)
- [Bridge] Add SetRectorsResolver, SetProviderCollector for easier use in 3rd-party tools (#6030)
- [DX] Inform about deprecated rules in config (#6047)
- [Config] Exclude listed on .gitignore for withRootFiles() (#6028)
Bugfixes :bug:
- AddTypeToConstRector: apply if const references another class const (#6017), Thanks
@tugmaks!- fix: Skip adding string casting to closure return when it returns str… (#6018), Thanks
@nikolicaleksa!- fix: Add code as a named argument (#6062), Thanks
@nikolicaleksa!- Fix message handler removal in RemoveUnusedPublicMethodParameterRector (#6001)
- fix: Skip refactoring when foreach if statement contains calls to met… (#6019), Thanks
@nikolicaleksa!- fix: Use named arguments if they are already used (#6022), Thanks
@nikolicaleksa!- [Naming] Handle used in arrow function param, then used again outer ArrowFunction on RenameParamToMatchTypeRector (#6046)
- Fix docker commands in CONTRIBUTING.md (#6023), Thanks
@tugmaks!- fix: Skip static calls which are made using the class name (#6024), Thanks
@nikolicaleksa!- feat: Support functions for first-class-callable (#6027), Thanks
@nikolicaleksa!- [Cleanup] Deprecate ChangeAndIfToEarlyReturnRector as creates less readable code with inverted conditions (#6041)
- fix: Convert DateTime to Carbon properly when negative days/months are used (#6051), Thanks
@nikolicaleksa!- [Php81] Handle usage as arg by ref key on falsy ObjectType on ReadOnlyPropertyRector (#6054)
- fix: Skip remove always true condition on method calls (#6063), Thanks
@nikolicaleksa!Removed and Deprecated :skull:
- [TypeDeclaration] Remove ArrowFunction from ReturnTypeFromReturnDirectArrayRector and ReturnTypeFromReturnNewRector (#6032)
- [Cleanup] Remove
@changelogas no longer maintained/used, use RuleDefinition instead (#6035)- [Cleanup] Remove FormatPerservingPrinter as only delegate method, use BetterStandardPrinter directly (#6036)
... (truncated)
Commits
2fa3875Rector 1.2.0a0361c8Updated Rector to commit a0ae659a312c39122c4b43167a4591ad7aff64052203e98Updated Rector to commit 436f0bc52f8fbd648b2fca69ecb5f7700aebdb9923b3490Updated Rector to commit 1561c90c6b9ef040532a34afa1c2f581ad5dfbc178890deUpdated Rector to commit 3c2100b3a8d2372094135efa9c4d0433078337b5738f339Updated Rector to commit ef333502fb722ef471049b492a257781d02d0d628ead3feUpdated Rector to commit ef333502fb722ef471049b492a257781d02d0d627d2f984Updated Rector to commit b94486c7b2663616901e4fd67047c963af9bd400e6124b8Updated Rector to commit 554cad981917c1d402601c9fb158e3be9a66eeb12f18f17Updated Rector to commit 33655134e27ea56c99a01e159425d1f358c0b4a0- 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 mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@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)