From 6541e8728cd8dbae0bbe63f6a8176f5383081cee Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Mon, 17 Jul 2023 22:53:05 -0500 Subject: [PATCH] Bump rector --- composer.json | 2 +- rector.php | 38 ++++++++++++++++---------------------- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/composer.json b/composer.json index 97af9ebf..cf11de06 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "phpstan/phpstan": "^1", "phpstan/phpstan-strict-rules": "^1", "psr-mock/http": "^1", - "rector/rector": "0.17.0", + "rector/rector": "0.17.6", "spatie/ray": "^1", "symfony/cache": "^4 || ^5 || ^6", "symfony/event-dispatcher": "^4 || ^5 || ^6", diff --git a/rector.php b/rector.php index 68f299a1..386dfd70 100644 --- a/rector.php +++ b/rector.php @@ -333,7 +333,7 @@ $rectorConfig->rules([ AbsolutizeRequireAndIncludePathRector::class, - ActionInjectionToConstructorInjectionRector::class, + // ActionInjectionToConstructorInjectionRector::class, AddArrayDefaultToArrayPropertyRector::class, AddArrowFunctionReturnTypeRector::class, AddClosureReturnTypeRector::class, @@ -348,7 +348,7 @@ AddVoidReturnTypeWhereNoReturnRector::class, AndAssignsToSeparateLinesRector::class, ArrayKeyExistsTernaryThenValueToCoalescingRector::class, - ArrayKeysAndInArrayToArrayKeyExistsRector::class, + // ArrayKeysAndInArrayToArrayKeyExistsRector::class, ArrayMergeOfNonArraysToSimpleArrayRector::class, // ArrayShapeFromConstantArrayReturnRector::class, BinarySwitchToIfElseRector::class, @@ -357,11 +357,10 @@ CallableThisArrayToAnonymousFunctionRector::class, CallUserFuncArrayToVariadicRector::class, CallUserFuncToMethodCallRector::class, - CallUserFuncToMethodCallRector::class, CallUserFuncWithArrowFunctionToInlineRector::class, CatchExceptionNameMatchingTypeRector::class, ChangeArrayPushToArrayAssignRector::class, - ChangeGlobalVariablesToPropertiesRector::class, + // ChangeGlobalVariablesToPropertiesRector::class, ChangeIfElseValueAssignToEarlyReturnRector::class, ChangeNestedForeachIfsToEarlyContinueRector::class, ChangeNestedIfsToEarlyReturnRector::class, @@ -381,7 +380,6 @@ ConsistentImplodeRector::class, // ConsistentPregDelimiterRector::class, CountArrayToEmptyArrayComparisonRector::class, - CountArrayToEmptyArrayComparisonRector::class, EmptyOnNullableObjectToInstanceOfRector::class, EncapsedStringsToSprintfRector::class, ExplicitBoolCompareRector::class, @@ -395,7 +393,6 @@ ForRepeatedCountToOwnVariableRector::class, // ForToForeachRector::class, FuncGetArgsToVariadicParamRector::class, - FuncGetArgsToVariadicParamRector::class, GetClassToInstanceOfRector::class, GetDebugTypeRector::class, InlineArrayReturnAssignRector::class, @@ -408,25 +405,24 @@ JoinStringConcatRector::class, LogicalToBooleanRector::class, MakeInheritedMethodVisibilitySameAsParentRector::class, - MultipleClassFileToPsr4ClassesRector::class, - NarrowUnionTypeDocRector::class, + // MultipleClassFileToPsr4ClassesRector::class, + // NarrowUnionTypeDocRector::class, NewlineBeforeNewAssignSetRector::class, NewStaticToNewSelfRector::class, - NormalizeNamespaceByPSR4ComposerAutoloadRector::class, + // NormalizeNamespaceByPSR4ComposerAutoloadRector::class, NullableCompareToNullRector::class, OptionalParametersAfterRequiredRector::class, - OptionalParametersAfterRequiredRector::class, ParamAnnotationIncorrectNullableRector::class, ParamTypeByMethodCallTypeRector::class, ParamTypeByParentCallTypeRector::class, ParamTypeFromStrictTypedPropertyRector::class, - Php8ResourceReturnToObjectRector::class, + // Php8ResourceReturnToObjectRector::class, PostIncDecToPreIncDecRector::class, PrivatizeFinalClassMethodRector::class, PrivatizeFinalClassPropertyRector::class, PropertyTypeFromStrictSetterGetterRector::class, RemoveAlwaysElseRector::class, - RemoveAlwaysTrueConditionSetInConstructorRector::class, + // RemoveAlwaysTrueConditionSetInConstructorRector::class, RemoveAndTrueRector::class, RemoveDeadConditionAboveReturnRector::class, RemoveDeadContinueRector::class, @@ -436,7 +432,7 @@ RemoveDeadStmtRector::class, RemoveDeadTryCatchRector::class, RemoveDeadZeroAndOneOperationRector::class, - RemoveDelegatingParentCallRector::class, + // RemoveDelegatingParentCallRector::class, RemoveDoubleAssignRector::class, // RemoveDoubleUnderscoreInMethodNameRector::class, RemoveDuplicatedArrayKeyRector::class, @@ -444,17 +440,16 @@ // RemoveDuplicatedIfReturnRector::class, // RemoveDuplicatedInstanceOfRector::class, RemoveEmptyClassMethodRector::class, - RemoveEmptyMethodCallRector::class, - RemoveEmptyTestMethodRector::class, + // RemoveEmptyMethodCallRector::class, + // RemoveEmptyTestMethodRector::class, RemoveExtraParametersRector::class, RemoveFinalFromConstRector::class, RemoveJustPropertyFetchForAssignRector::class, - RemoveJustVariableAssignRector::class, - RemoveLastReturnRector::class, + // RemoveJustVariableAssignRector::class, + // RemoveLastReturnRector::class, RemoveNonExistingVarAnnotationRector::class, RemoveNullPropertyInitializationRector::class, RemoveParentCallWithoutParentRector::class, - RemoveParentCallWithoutParentRector::class, RemoveSoleValueSprintfRector::class, RemoveUnreachableStatementRector::class, RemoveUnusedConstructorParamRector::class, @@ -472,7 +467,7 @@ RenameForeachValueVariableToMatchMethodCallReturnTypeRector::class, ReplaceMultipleBooleanNotRector::class, ReturnAnnotationIncorrectNullableRector::class, - ReturnBinaryAndToEarlyReturnRector::class, + // ReturnBinaryAndToEarlyReturnRector::class, ReturnBinaryOrToEarlyReturnRector::class, ReturnEarlyIfVariableRector::class, ReturnNeverTypeRector::class, @@ -483,7 +478,6 @@ ReturnTypeFromStrictNativeCallRector::class, ReturnTypeFromStrictNewArrayRector::class, ReturnTypeFromStrictScalarReturnExprRector::class, - ReturnTypeFromStrictScalarReturnExprRector::class, ReturnTypeFromStrictTernaryRector::class, ReturnTypeFromStrictTypedCallRector::class, ReturnTypeFromStrictTypedPropertyRector::class, @@ -497,7 +491,7 @@ SimplifyDeMorganBinaryRector::class, SimplifyEmptyArrayCheckRector::class, SimplifyEmptyCheckOnEmptyArrayRector::class, - SimplifyForeachToArrayFilterRector::class, + // SimplifyForeachToArrayFilterRector::class, SimplifyForeachToCoalescingRector::class, SimplifyFuncGetArgsCountRector::class, SimplifyIfElseToTernaryRector::class, @@ -549,7 +543,7 @@ UseIdenticalOverEqualWithSameTypeRector::class, UseIncrementAssignRector::class, // VarAnnotationIncorrectNullableRector::class, - VarConstantCommentRector::class, + // VarConstantCommentRector::class, VarToPublicPropertyRector::class, VersionCompareFuncCallToConstantRector::class, WrapEncapsedVariableInCurlyBracesRector::class,