yiisoft / validator

Yii validator library
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
110 stars 36 forks source link

Update rector/rector requirement from `1.0.*` to `^1.2` #725

Closed dependabot[bot] closed 5 days ago

dependabot[bot] commented 5 days ago

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

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 always config for EncapsedStringsToSprintfRector (#6050), Thanks @​ruudk!
  • Add only_direct_assign config 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 @​changelog as no longer maintained/used, use RuleDefinition instead (#6035)
  • [Cleanup] Remove FormatPerservingPrinter as only delegate method, use BetterStandardPrinter directly (#6036)

... (truncated)

Commits
  • 2fa3875 Rector 1.2.0
  • a0361c8 Updated Rector to commit a0ae659a312c39122c4b43167a4591ad7aff6405
  • 2203e98 Updated Rector to commit 436f0bc52f8fbd648b2fca69ecb5f7700aebdb99
  • 23b3490 Updated Rector to commit 1561c90c6b9ef040532a34afa1c2f581ad5dfbc1
  • 78890de Updated Rector to commit 3c2100b3a8d2372094135efa9c4d0433078337b5
  • 738f339 Updated Rector to commit ef333502fb722ef471049b492a257781d02d0d62
  • 8ead3fe Updated Rector to commit ef333502fb722ef471049b492a257781d02d0d62
  • 7d2f984 Updated Rector to commit b94486c7b2663616901e4fd67047c963af9bd400
  • e6124b8 Updated Rector to commit 554cad981917c1d402601c9fb158e3be9a66eeb1
  • 2f18f17 Updated 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 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 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)