Skip to content
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

chore(deps): update dependency rector/rector to v1.2.10 #83

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 22, 2024

This PR contains the following updates:

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

Release Notes

rectorphp/rector (rector/rector)

v1.2.10: Released Rector 1.2.10

Compare Source

New Features 🥳

  • [PHP8.3] add new rectors for get_class()/get_parent_class() without arguments (#​6405), Thanks @​cabbey!

Bugfixes 🐛

  • Fix ClassDependencyManipulator to add dependency on right position (#​6413)
  • [Php81] Skip Doctrine Embeddable on ReadOnlyPropertyRector (#​6411)
  • [Privatization] Skip with parameter on PrivatizeLocalGetterToPropertyRector (#​6412)

Removed 💀

  • [DeadCode] Skip nullable @​ template on RemoveUselessReturnTagRector (#​6409)



rectorphp/rector-phpunit 🟢

  • [PHPUnit 10] Skip with Magic __get() on AssertIssetToAssertObjectHasPropertyRector (#​403)
  • [CodeQuality] Add CreateMockToDirectNewRector (#​402)
  • [CodeQuality] Add SingleMockPropertyTypeRector (#​401)
  • [CodeQuality] Skip used by trait and multiple props on NarrowUnusedSetUpDefinedPropertyRector (#​400)
  • Skip property with default value in NarrowUnusedSetUpDefinedPropertyRector (#​398)
  • [CodeQuality] Add FlipAssertRector (#​397)
  • Add count() support to AssertCompareOnCountableWithMethodToAssertCountRector (#​395)
  • Add enum/const fetch support to AssertEqualsToSameRector (#​394)
  • skip static property in NarrowUnusedSetUpDefinedPropertyRector (#​393)

v1.2.9: Released Rector 1.2.9

Compare Source

Bugfixes 🐛

  • [Strict] Using in_array() on CallLike instead of double call on Strict Rules (#​6388)
  • [CodeQuality] Handle If cond as assign on ExplicitBoolCompareRector (#​6389)
  • [CodeQuality] Skip append non empty array on ForeachItemsAssignToEmptyArrayToAssignRector (#​6390)
  • [Php80] Mirror return comment on ChangeSwitchToMatchRector (#​6394)
  • [TypeDeclaration] Skip union intersection types on php 8.1, allow on php 8.2+ (#​6395)
  • [Php80] Skip @​template T as mixed on MixedTypeRector (#​6399)
  • [DeadCode] Check TemplateType instance check on Dead*TagValueNodeAnalyzer (#​6400)
  • [CodeQuality] Skip multiple lines on JoinStringConcatRector (#​6404)
  • [CodingStyle] Skip equal modifier on direct parent method compatible on MakeInheritedMethodVisibilitySameAsParentRector (#​6406)

Removed 💀

  • [DeadCode] Handle consecutive equal case stmts on RemoveDuplicatedCaseInSwitchRector (#​6392)
  • [DeadCode] Handle handle consecutive equal with jump different case on RemoveDuplicatedCaseInSwitchRector (#​6393)
  • [DeadCode] Skip @​template tag on RemoveUselessVarTagRector (#​6396)
  • [DeadCode] Support multiple templates in RemoveUselessVarTagRector (#​6402), Thanks @​dragosprotung!



rectorphp/rector-symfony 🎵


rectorphp/rector-phpunit 🟢

  • [code-quality] Add NarrowUnusedSetUpDefinedPropertyRector (#​388)
  • Add enum/const fetch support to AssertEqualsToSameRector (#​394)
  • Add count() support to AssertCompareOnCountableWithMethodToAssertCountRector (#​395)
  • [AnnotationsToAttribute] Skip not in test on AnnotationWithValueToAttributeRector (#​387)
  • Add ReplaceTestFunctionPrefixWithAttributeRector (#​386), Thanks @​blackwolf12333

v1.2.8: Released Rector 1.2.8

Compare Source

Bugfixes 🐛

  • [UnusedImport] Fix removing multiple uses (#​6376), Thanks @​jorgsowa!
  • [PostRector] Clean up variables and conditional usage on UnusedImportRemovingPostRector (#​6378)
  • [PostRector] Reduce repetitive toString() on loop on UnusedImportRemovingPostRector (#​6379)
  • [CodeQuality] Skip no @​ property doc on DynamicDocBlockPropertyToNativePropertyRector (#​6380)
  • [CodeQuality] Handle with other attributes on DynamicDocBlockPropertyToNativePropertyRector (#​6381)
  • [CodeQuality] Use existing PhpAttributeAnalyzer service instead of AttributeFinder from Doctrine package on DynamicDocBlockPropertyToNativePropertyRector (#​6382)
  • Fix duplicated register ContinueToBreakInSwitchRector in php52.php and php73.php (#​6385)
  • [AutoImport] Fix missing @​ in deep annotation auto import (#​6386)
  • [DeadCode] Skip non FullyQualified property type on RemoveTypedPropertyNonMockDocblockRector (#​6383)

New Features 🥳

  • [CodeQuality] Add DynamicDocBlockPropertyToNativePropertyRector (#​5691)
  • [DX] [Experimental] Add withPhpLevel() to raise PHP level one rule at a time (#​6261)

v1.2.7: Released Rector 1.2.7

Compare Source

New Features 🥳


Bugfixes 🐛

  • Fixed --memory-limit=-1 option handling when used in parallel (#​6349), Thanks @​ddegasperi!
  • [Php70] Fix delimiter in the middle on EregToPregMatchRector (#​6356)
  • [Php70] More delimiter case in the middle fix on EregToPregMatchRector (#​6357)
  • [Php80] Cast string/int for int vs string condition and case condition on ChangeSwitchToMatchRector (#​6359)
  • [DeadCode] Skip from call with return docblock on ReduceAlwaysFalseIfOrRector (#​6361)
  • [TypeDeclaration] Closure Param Types from Iterator Source (#​6345), Thanks @​peterfox!
  • [Privatization] Allow privatize protected promoted property on PrivatizeFinalClassPropertyRector (#​6360)
  • [DeadCode] Skip with Else and ElseIf on SimplifyIfNotNullReturnRector (#​6365)
  • [Php70] Handle empty branch crash on unprintable char \x0C on EregToPregMatchRector (#​6368)
  • [UnusedImport] Different letter case for classes + optimization (#​6362), Thanks @​jorgsowa!
  • [CodeQuality] Skip else indirect return on SimplifyIfReturnBoolRector (#​6371)
  • [CodeQuality] Clean up else check on SimplifyIfReturnBoolRector (#​6372)
  • [TypeDeclaration] Fix deep nested array docblock with \ prefix on ReturnTypeFromStrictNewArrayRector (#​6373)
  • [EarlyReturn] Skip nested with OR in root if statement condition on ChangeNestedForeachIfsToEarlyContinueRector (#​6375)
  • [DeadCode] Skip RemoveUnusedPrivatePropertyRector in middle assign (#​6363)

Removed 💀

  • [NodeAnalyzer] Remove ClassAnalyzer::isAnonymousClassName() (#​6351)
  • [NodeAnalyzer] Remove unused AstResolver on VariadicAnalyzer (#​6353)
  • [DeadCode] Clean up double private method filtering on RemoveUnusedPrivateMethodRector (#​6364)
  • [DeadCode] Skip union docblock param with is_object() native type check on RemoveAlwaysTrueIfConditionRector (#​6370)



rectorphp/rector-symfony 🎵

  • [CodeQuality] Add AddTraitGetterReturnTypeBasedOnSetterRequiredRector (#​671)

rectorphp/rector-phpunit 🟢

  • [PHPUnit 10] Add ifs as default way for withConsecutive, as more readable and opens upgrade during PHPUnit 9 (#​382)
  • Use simple direct assert on consecutive in case of arrow function in callable (#​381)
  • Use more readable ifs on will return in WithConsecutiveRector (#​380)
  • add NarrowSingleWillReturnCallbackRector to code quality set (#​379)

v1.2.6: Released Rector 1.2.6

Compare Source

New Features 🥳

  • [TypeDeclaration] Add isset(), empty(), and negation support on BoolReturnTypeFromBooleanStrictReturnsRector (#​6339)
  • [TypeDeclaration] Add NativeMethodReflection support on ReturnStrictTypeAnalyzer (#​6344)
  • [DX] Show paths not match any file/directory on ProcessCommand when given path not exists (#​6307)

Bugfixes 🐛

  • [TypeDeclaration] Convert inline @​var tag to assert() (#​6300), Thanks @​carlos-granados!
  • Fix incorrect result after using RemoveByType in PhpDocInfo (#​6301), Thanks @​carlos-granados!
  • [TypeDeclaration] Skip nullable callable on TypedPropertyFromAssignsRector (#​6308)
  • Fix LocallyCalledStaticMethodToNonStaticRector when static function is called using the class name (#​6310), Thanks @​carlos-granados!
  • [Php81] Handle crash on ArrowFunction attribute on FirstClassCallableRector (#​6313)
  • [Performance] Reduce double traverse on StrictNativeFunctionReturnTypeAnalyzer (#​6320)
  • [PhpParser] Alternative PR for findInstancesOfScoped() to keep existing performance (#​6324)
  • [CodingStyle] Use double quote to escape quotes in EncapsedStringsToSprintfRector (#​6326)
  • [TypeDeclaration] Handle crash on func call not found on BoolReturnTypeFromBooleanStrictReturnsRector (#​6327)
  • Fix first class callable to use combineAcceptors() to avoid assert Arg instance error (#​6330)
  • [Php81] Allow used as assign expr on ReadOnlyPropertyRector (#​6331)
  • Skip arrow function in scoped search (#​6333)
  • [TypeDeclaration] Better approach for native type check on ReturnStrictTypeAnalyzer (#​6343)
  • [DeadCode] Skip extension load append variable on RemoveAlwaysTrueIfConditionRector (#​6332)
  • [TypeDeclaration] Remove only void type on ReturnedNodesReturnTypeInfererTypeInferer (#​6340)
  • [DeadCode] Skip indirect next line definition of @​var on RemoveNonExistingVarAnnotationRector (#​6348)

rectorphp/rector-symfony 🎵

  • Added return type declaration rules for FormTypeInterface (#​670), Thanks @​stollr

rectorphp/rector-phpunit 🟢

  • [CodeQuality] Add NarrowSingleWillReturnCallbackRector (#​374)
  • [CodeQuality] Add SingleWithConsecutiveToWithRector (#​370)
  • [CodeQuality] Add NarrowIdenticalWithConsecutiveRector (#​369)
  • [CodeQuality] Add AddParentSetupCallOnSetupRector (#​364)
  • Include match() to invoke counting in WithConsecutiveRector (#​362)
  • Move WithConsecutiveRector to its PHPUnit100 namespace, CreateMockToAnonymousClassRector + PreferPHPUnitSelfCallRector to CodeQuality (#​360)
  • Add existing willReturnCallback() support to WithConsecutiveRector (#​358)

v1.2.5: Released Rector 1.2.5

Compare Source

New Features and Improvements 🥳

  • 20-30 % Rector speedup - Optimise checking the node types allowed for each rule (#​6232), Thanks @​carlos-granados!
  • [docs] Add help on the default process command (#​6226), Thanks @​94noni!
  • [TypeDeclaration] Adds AddClosureParamTypeFromArgRector (#​6258)
  • Adds AddClosureParamTypeFromObjectRector (#​6265), Thanks @​peterfox!
  • [Config] Improve ComposerJsonPhpVersionResolver API, make use of explicit php set files (#​6273)
  • [FileSystem] Add data and writable to not include on InitFilePathsResolver (#​6285)
  • always make paths absolute before processing files (#​6293), Thanks @​Kanti!

Bugfixes 🐛

  • [CodeQuality] Handle crash on first class callable inside match on OptionalParametersAfterRequiredRector (#​6263)
  • [ReturnTypeInferer] Drop this/static docblock type check on ReturnTypeInferer (#​6270)

Removed 💀

  • [deprecated] Remove deprecated ChangeAndIfToEarlyReturnRector, CallableThisArrayToAnonymousFunctionRector + casting rules (#​6276)
  • [deprecations] Remove deprecated GetClassToInstanceOfRector, UseIncrementAssignRector, DetectNodeCommand (#​6278)
  • [deprecated] Remove deprecated closure return rules, return type from strict bool/scalar returns (#​6287)


rectorphp/rector-symfony 🎵

  • Add Class_ annotation support to TemplateAnnotationToThisRenderRector (#​666)

rectorphp/rector-doctrine 🟠

  • Refactor the OrderByKeyToClassConstRector to use the new enum only in Criteria::orderBy method calls (#​336), Thanks @​julienfastre

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 becomes conflicted, 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 force-pushed the renovate/rector-rector-1.x-lockfile branch from 4732240 to 6989a70 Compare October 3, 2024 09:11
@renovate renovate bot changed the title chore(deps): update dependency rector/rector to v1.2.5 chore(deps): update dependency rector/rector to v1.2.6 Oct 3, 2024
@renovate renovate bot force-pushed the renovate/rector-rector-1.x-lockfile branch from 6989a70 to 3d820ba Compare October 12, 2024 13:25
@renovate renovate bot changed the title chore(deps): update dependency rector/rector to v1.2.6 chore(deps): update dependency rector/rector to v1.2.7 Oct 12, 2024
@renovate renovate bot force-pushed the renovate/rector-rector-1.x-lockfile branch from 3d820ba to 1097856 Compare October 18, 2024 11:58
@renovate renovate bot changed the title chore(deps): update dependency rector/rector to v1.2.7 chore(deps): update dependency rector/rector to v1.2.8 Oct 18, 2024
@renovate renovate bot force-pushed the renovate/rector-rector-1.x-lockfile branch 2 times, most recently from 6e2a20c to cd31a0d Compare November 4, 2024 19:42
@renovate renovate bot changed the title chore(deps): update dependency rector/rector to v1.2.8 chore(deps): update dependency rector/rector to v1.2.9 Nov 4, 2024
@renovate renovate bot changed the title chore(deps): update dependency rector/rector to v1.2.9 chore(deps): update dependency rector/rector to v1.2.10 Nov 8, 2024
@renovate renovate bot force-pushed the renovate/rector-rector-1.x-lockfile branch from cd31a0d to 76647b7 Compare November 8, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants