Skip to content

chore(deps): Update dependency rector/rector to v2.0.12 #296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2025

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Apr 26, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rector/rector (source) 2.0.11 -> 2.0.12 age adoption passing confidence

Release Notes

rectorphp/rector (rector/rector)

v2.0.12: Released Rector 2.0.12

Compare Source

New Features 🥳

  • [dx] [experimental] Prepend command name automatically if only paths are passed (#​6759)
### before
vendor/bin/rector process src

### now - default command is run, no need to write the sole main command manually
vendor/bin/rector src
  • [Configuration] [experimental] Add ability to specify file path without extension (#​6839)
  • [type-declaration] Add AddClosureParamArrayWhereDimFetchRector (#​6815)
  • [dx] add test to check that a rule is not applied if it does not change the code (#​6794), Thanks @​carlos-granados!
  • [renaming Add enum support to rename method (#​6832)
  • [Php83] Make configurable to allow add #[\Override] on override empty method on AddOverrideAttributeToOverriddenMethodsRector (#​6831)
  • [Transform] Follow parent construct before add new param on StaticCallToMethodCallRector (#​6854)

Bugfixes 🐛

  • Skip DateTime from property type to property renaming to keep code readable (#​6812)
  • Add a hint how to upgrade custom SetListInterface to Rector 2.0 (#​6816), Thanks @​alexander-schranz!
  • Return if var type has changed in PhpDocTypeChanger (#​6813), Thanks @​carlos-granados!
  • fix: RenamePropertyToMatchTypeRector renames DateTimeInterface (#​6814), Thanks @​tony-stark-eth!
  • [TypeDeclaration] ReturnTypeFromStrictNewArrayRector support list (#​6820), Thanks @​staabm!
  • [Php80] Handle null value on AnnotationToAttributeRector (#​6821)
  • [DeadCode] Handle crash on no stmts on ReplaceBlockToItsStmtsRector (#​6824)
  • [type-declaration] Override existing wrong type on TypedPropertyFromCreateMockAssignRector (#​6826)
  • [TypeDeclaration] Skip already typed with PHPUnit\Framework\MockObject\MockObject on TypedPropertyFromCreateMockAssignRector (#​6827)
  • [NodeTypeResolver] Pass null on 2nd arg on ReflectionProvider->getFunction() to ensure get correct function (#​6829)
  • [Php80] Handle aliased with multi properties on AnnotationToAttributeRector (#​6838)
  • [Configuration] Fix root standalone registered rules verify on RectorConfigBuilder (#​6840)
  • [Php73] Fix escaped single quote on RegexDashEscapeRector (#​6843)
  • [Php80] Handle crash on @​testdoc with rector-phpunit AnnotationWithValueToAttributeRector (#​6846)
  • Fix scoped error on ClassConstFetchAnnotationToAttributeMapper (#​6848)
  • [PhpAttribute] Handle multi double colon on AnnotationWithValueToAttributeRector (#​6851)
  • [Transform] Follow empty parent construct parameters on StaticCallToMethodCallRector (#​6855)
  • [TypeDeclaration] Skip with closure inside on AddArrowFunctionParamArrayWhereDimFetchRector (#​6817)
  • [Php71] Skip replaced native function on RemoveExtraParametersRector (#​6828)
  • [DeadCode] Skip switch break not unreachable on RemoveUnreachableStatementRector (#​6837)

rectorphp/rector-symfony 🎵

  • Clean up #[RunClassInSeparateProcess] tweak (#​721)
  • [CodeQuality] Handle crash on no extensions on StringExtensionToConfigBuilderRector (#​717)
  • add ampersand support (#​716)
  • [code-quality] Add SplitAndSecurityAttributeToIsGrantedRector (#​715)
  • [code-quality] Add SecurityAttributeToIsGrantedRector (#​714)
  • [code-quality] Add attribute-existance check to SecurityAttributeToIsGrantedAttributeRector, add to code-quality set (#​713)
  • Skip excluded tag in container (#​710), Thanks @​Myks92

rectorphp/rector-doctrine 🟠


rectorphp/rector-phpunit 🟢

  • [PHPUnit100] Skip already key = null on RemoveNamedArgsInDataProviderRector (#​475)
  • [PHPUnit90] Handle crash on different object without second arg on SpecificAssertContainsWithoutIdentityRector (#​474)
  • add test fixture (#​473)
  • Fix RemoveNamedArgsInDataProviderRector so that it is not applied if no change is made (#​472), Thanks @​carlos-granados
  • [CodeQuality] fix assertInstanceOf casing (#​471), Thanks @​staabm
  • [CodeQuality] Handle crash on multiple assert cause undefined variable on AddInstanceofAssertForNullableInstanceRector (#​470)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependency An issue or pull request targeting dependencies. label Apr 26, 2025
Copy link

@ericsizemore ericsizemore merged commit fbec82d into master Apr 26, 2025
11 of 12 checks passed
@renovate renovate bot deleted the renovate/rector-rector-2.x-lockfile branch April 26, 2025 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency An issue or pull request targeting dependencies.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant