From 711b8efb6d7fc75529bf21c24982396e7cc4c2d2 Mon Sep 17 00:00:00 2001 From: Andre Sugai <2228791+asugai@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:03:58 -0600 Subject: [PATCH] upgraded to rector/rector:^0.19.0 --- composer.json | 2 +- config/sets/laravel56.php | 2 +- config/sets/laravel57.php | 2 +- config/sets/laravel60.php | 2 +- config/sets/laravel90.php | 2 +- src/NodeFactory/ModelFactoryNodeFactory.php | 4 ++-- .../CallOnAppArrayAccessToStandaloneAssignRector.php | 4 ++-- .../DatabaseExpressionCastsToMethodCallRector.php | 2 +- .../ClassMethod/AddArgumentDefaultValueRector.php | 4 ++-- .../AddGenericReturnTypeToRelationsRector.php | 4 ++-- .../AddParentBootToModelClassMethodRector.php | 4 ++-- ...AddParentRegisterToEventServiceProviderRector.php | 4 ++-- .../MigrateToSimplifiedAttributeRector.php | 4 ++-- .../AddExtendsAnnotationToModelFactoriesRector.php | 2 +- ...AddMockConsoleOutputFalseToConsoleTestsRector.php | 12 ++++++------ src/Rector/Class_/AnonymousMigrationsRector.php | 4 ++-- .../Class_/CashierStripeOptionsToStripeRector.php | 2 +- .../PropertyDeferToDeferrableProviderToRector.php | 4 ++-- .../RemoveModelPropertyFromFactoriesRector.php | 2 +- .../Class_/ReplaceExpectsMethodsInTestsRector.php | 2 +- src/Rector/Class_/UnifyModelDatesWithCastsRector.php | 6 +++--- .../Empty_/EmptyToBlankAndFilledFuncRector.php | 2 +- .../AppEnvironmentComparisonToParameterRector.php | 2 +- ...rToStartsWithOrEndsWithStaticMethodCallRector.php | 4 ++-- .../FuncCall/ArgumentFuncCallToMethodCallRector.php | 6 +++--- .../FuncCall/FactoryFuncCallToStaticCallRector.php | 2 +- .../FuncCall/HelperFuncCallToFacadeClassRector.php | 2 +- ...illedBlankFuncCallToBlankFilledFuncCallRector.php | 2 +- ...FuncWithStartOfDayMethodCallToTodayFuncRector.php | 2 +- src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php | 2 +- .../FuncCall/SleepFuncToSleepStaticCallRector.php | 2 +- src/Rector/If_/ThrowIfRector.php | 2 +- .../MethodCall/AssertStatusToAssertMethodRector.php | 2 +- .../ChangeQueryWhereDateValueWithCarbonRector.php | 4 ++-- .../DatabaseExpressionToStringToMethodCallRector.php | 2 +- .../EloquentOrderByToLatestOrOldestRector.php | 4 ++-- ...oquentWhereRelationTypeHintingParameterRector.php | 2 +- .../EloquentWhereTypeHintClosureParameterRector.php | 2 +- .../MethodCall/FactoryApplyingStatesRector.php | 4 ++-- .../MethodCall/JsonCallToExplicitJsonCallRector.php | 2 +- .../LumenRoutesStringActionToUsesArrayRector.php | 2 +- .../LumenRoutesStringMiddlewareToArrayRector.php | 2 +- .../MethodCall/RedirectBackToBackHelperRector.php | 2 +- .../RedirectRouteToToRouteHelperRector.php | 2 +- ...obsEventsAndNotificationsWithFacadeFakeRector.php | 2 +- .../UseComponentPropertyWithinCommandsRector.php | 2 +- src/Rector/Namespace_/FactoryDefinitionRector.php | 4 ++-- src/Rector/New_/AddGuardToLoginEventRector.php | 2 +- .../OptionalToNullsafeOperatorRector.php | 8 ++++---- .../ReplaceFakerInstanceWithHelperRector.php | 4 ++-- .../EloquentMagicMethodToQueryBuilderRector.php | 2 +- .../StaticCall/MinutesToSecondsInCacheRector.php | 2 +- .../Redirect301ToPermanentRedirectRector.php | 4 ++-- ...placeAssertTimesSendWithAssertSentTimesRector.php | 2 +- .../RequestStaticValidateToInjectRector.php | 4 ++-- src/Rector/StaticCall/RouteActionCallableRector.php | 8 ++++---- src/ValueObject/ArgumentFuncCallToMethodCall.php | 2 +- src/ValueObject/ArrayFuncCallToMethodCall.php | 2 +- 58 files changed, 90 insertions(+), 90 deletions(-) diff --git a/composer.json b/composer.json index e847d7c9..14de005b 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "description": "Rector upgrades rules for Laravel Framework", "require": { "php": ">=8.2", - "rector/rector": "^0.18.5" + "rector/rector": "^0.19.0" }, "require-dev": { "phpunit/phpunit": "^10.0", diff --git a/config/sets/laravel56.php b/config/sets/laravel56.php index 07a47eac..61724d03 100644 --- a/config/sets/laravel56.php +++ b/config/sets/laravel56.php @@ -3,7 +3,7 @@ declare(strict_types=1); use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\Visibility; +use Rector\ValueObject\Visibility; use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\ValueObject\MethodCallRename; use Rector\Visibility\Rector\ClassMethod\ChangeMethodVisibilityRector; diff --git a/config/sets/laravel57.php b/config/sets/laravel57.php index 997f39b8..b6dae55f 100644 --- a/config/sets/laravel57.php +++ b/config/sets/laravel57.php @@ -6,7 +6,7 @@ use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector; use Rector\Arguments\ValueObject\ArgumentAdder; use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\Visibility; +use Rector\ValueObject\Visibility; use Rector\Removing\Rector\ClassMethod\ArgumentRemoverRector; use Rector\Removing\ValueObject\ArgumentRemover; use Rector\Visibility\Rector\ClassMethod\ChangeMethodVisibilityRector; diff --git a/config/sets/laravel60.php b/config/sets/laravel60.php index 1a84a5a0..4152ed98 100644 --- a/config/sets/laravel60.php +++ b/config/sets/laravel60.php @@ -5,7 +5,7 @@ use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector; use Rector\Arguments\ValueObject\ArgumentAdder; use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\Visibility; +use Rector\ValueObject\Visibility; use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\Rector\Name\RenameClassRector; use Rector\Renaming\Rector\StaticCall\RenameStaticMethodRector; diff --git a/config/sets/laravel90.php b/config/sets/laravel90.php index 6618230e..4f8c0671 100644 --- a/config/sets/laravel90.php +++ b/config/sets/laravel90.php @@ -5,7 +5,7 @@ use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector; use Rector\Arguments\ValueObject\ArgumentAdder; use Rector\Config\RectorConfig; -use Rector\Core\ValueObject\Visibility; +use Rector\ValueObject\Visibility; use Rector\Renaming\Rector\MethodCall\RenameMethodRector; use Rector\Renaming\ValueObject\MethodCallRename; use Rector\Visibility\Rector\ClassMethod\ChangeMethodVisibilityRector; diff --git a/src/NodeFactory/ModelFactoryNodeFactory.php b/src/NodeFactory/ModelFactoryNodeFactory.php index 5bcd5753..5bfb6782 100644 --- a/src/NodeFactory/ModelFactoryNodeFactory.php +++ b/src/NodeFactory/ModelFactoryNodeFactory.php @@ -20,8 +20,8 @@ use PhpParser\Node\Stmt\Return_; use PhpParser\NodeTraverser; use PhpParser\NodeVisitor\NameResolver; -use Rector\Core\PhpParser\Node\NodeFactory; -use Rector\Core\PhpParser\Node\Value\ValueResolver; +use Rector\PhpParser\Node\NodeFactory; +use Rector\PhpParser\Node\Value\ValueResolver; use Rector\NodeNameResolver\NodeNameResolver; use Rector\PhpDocParser\NodeTraverser\SimpleCallableNodeTraverser; diff --git a/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php b/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php index 18823396..90698aa1 100644 --- a/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php +++ b/src/Rector/Assign/CallOnAppArrayAccessToStandaloneAssignRector.php @@ -14,8 +14,8 @@ use PhpParser\Node\Stmt\Nop; use PHPStan\Type\ObjectType; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; use RectorLaravel\NodeFactory\AppAssignFactory; use RectorLaravel\ValueObject\ServiceNameTypeAndVariableName; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; diff --git a/src/Rector/Cast/DatabaseExpressionCastsToMethodCallRector.php b/src/Rector/Cast/DatabaseExpressionCastsToMethodCallRector.php index b1504dd8..5708e74c 100644 --- a/src/Rector/Cast/DatabaseExpressionCastsToMethodCallRector.php +++ b/src/Rector/Cast/DatabaseExpressionCastsToMethodCallRector.php @@ -7,7 +7,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\Cast\String_; use PhpParser\Node\Expr\StaticCall; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php b/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php index 3705553e..6ed5ccb2 100644 --- a/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php +++ b/src/Rector/ClassMethod/AddArgumentDefaultValueRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr; use PhpParser\Node\Param; use PhpParser\Node\Stmt\ClassMethod; -use Rector\Core\Contract\Rector\ConfigurableRectorInterface; -use Rector\Core\Rector\AbstractRector; +use Rector\Contract\Rector\ConfigurableRectorInterface; +use Rector\Rector\AbstractRector; use RectorLaravel\ValueObject\AddArgumentDefaultValue; use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php b/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php index 166aa926..967046c4 100644 --- a/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php +++ b/src/Rector/ClassMethod/AddGenericReturnTypeToRelationsRector.php @@ -20,8 +20,8 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\ValueObject\Type\FullyQualifiedIdentifierTypeNode; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Core\PhpParser\Node\BetterNodeFinder; -use Rector\Core\Rector\AbstractScopeAwareRector; +use Rector\PhpParser\Node\BetterNodeFinder; +use Rector\Rector\AbstractScopeAwareRector; use Rector\NodeTypeResolver\TypeComparator\TypeComparator; use Rector\StaticTypeMapper\StaticTypeMapper; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; diff --git a/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php b/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php index 9e8f9cf5..92e93fc0 100644 --- a/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php +++ b/src/Rector/ClassMethod/AddParentBootToModelClassMethodRector.php @@ -8,8 +8,8 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PHPStan\Reflection\ClassReflection; -use Rector\Core\Rector\AbstractRector; -use Rector\Core\Reflection\ReflectionResolver; +use Rector\Rector\AbstractRector; +use Rector\Reflection\ReflectionResolver; use RectorLaravel\NodeAnalyzer\StaticCallAnalyzer; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php b/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php index 17106c52..01e75d8f 100644 --- a/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php +++ b/src/Rector/ClassMethod/AddParentRegisterToEventServiceProviderRector.php @@ -8,8 +8,8 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PHPStan\Reflection\ClassReflection; -use Rector\Core\Rector\AbstractRector; -use Rector\Core\Reflection\ReflectionResolver; +use Rector\Rector\AbstractRector; +use Rector\Reflection\ReflectionResolver; use RectorLaravel\NodeAnalyzer\StaticCallAnalyzer; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php b/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php index 2129e5f9..dee11b1a 100644 --- a/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php +++ b/src/Rector/ClassMethod/MigrateToSimplifiedAttributeRector.php @@ -23,8 +23,8 @@ use PhpParser\Node\Stmt\Return_; use PhpParser\NodeTraverser; use PHPStan\Type\ObjectType; -use Rector\Core\PhpParser\Node\BetterNodeFinder; -use Rector\Core\Rector\AbstractRector; +use Rector\PhpParser\Node\BetterNodeFinder; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector.php b/src/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector.php index bbb58efe..df12fd9d 100644 --- a/src/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector.php +++ b/src/Rector/Class_/AddExtendsAnnotationToModelFactoriesRector.php @@ -17,7 +17,7 @@ use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; use Rector\BetterPhpDocParser\ValueObject\Type\FullyQualifiedIdentifierTypeNode; use Rector\Comments\NodeDocBlock\DocBlockUpdater; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php b/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php index dfc02b50..4b17ee17 100644 --- a/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php +++ b/src/Rector/Class_/AddMockConsoleOutputFalseToConsoleTestsRector.php @@ -14,12 +14,12 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PHPStan\Type\ObjectType; -use Rector\Core\Enum\ObjectReference; -use Rector\Core\NodeAnalyzer\PropertyFetchAnalyzer; -use Rector\Core\PhpParser\Node\BetterNodeFinder; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; -use Rector\Core\ValueObject\MethodName; +use Rector\Enum\ObjectReference; +use Rector\NodeAnalyzer\PropertyFetchAnalyzer; +use Rector\PhpParser\Node\BetterNodeFinder; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; +use Rector\ValueObject\MethodName; use Rector\PHPUnit\NodeAnalyzer\SetUpMethodDecorator; use Rector\Privatization\NodeManipulator\VisibilityManipulator; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; diff --git a/src/Rector/Class_/AnonymousMigrationsRector.php b/src/Rector/Class_/AnonymousMigrationsRector.php index 4e2cbdee..63a0b255 100644 --- a/src/Rector/Class_/AnonymousMigrationsRector.php +++ b/src/Rector/Class_/AnonymousMigrationsRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\Return_; use PHPStan\Type\ObjectType; -use Rector\Core\NodeAnalyzer\ClassAnalyzer; -use Rector\Core\Rector\AbstractRector; +use Rector\NodeAnalyzer\ClassAnalyzer; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Class_/CashierStripeOptionsToStripeRector.php b/src/Rector/Class_/CashierStripeOptionsToStripeRector.php index 7ec2a351..cea4cb35 100644 --- a/src/Rector/Class_/CashierStripeOptionsToStripeRector.php +++ b/src/Rector/Class_/CashierStripeOptionsToStripeRector.php @@ -11,7 +11,7 @@ use PHPStan\Analyser\Scope; use PHPStan\Reflection\ClassReflection; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractScopeAwareRector; +use Rector\Rector\AbstractScopeAwareRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Class_/PropertyDeferToDeferrableProviderToRector.php b/src/Rector/Class_/PropertyDeferToDeferrableProviderToRector.php index e579421f..ce320866 100644 --- a/src/Rector/Class_/PropertyDeferToDeferrableProviderToRector.php +++ b/src/Rector/Class_/PropertyDeferToDeferrableProviderToRector.php @@ -10,8 +10,8 @@ use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\Property; use PHPStan\Type\ObjectType; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Class_/RemoveModelPropertyFromFactoriesRector.php b/src/Rector/Class_/RemoveModelPropertyFromFactoriesRector.php index f07a9c51..89f50929 100644 --- a/src/Rector/Class_/RemoveModelPropertyFromFactoriesRector.php +++ b/src/Rector/Class_/RemoveModelPropertyFromFactoriesRector.php @@ -8,7 +8,7 @@ use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\Property; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Class_/ReplaceExpectsMethodsInTestsRector.php b/src/Rector/Class_/ReplaceExpectsMethodsInTestsRector.php index 77fb19da..16667e08 100644 --- a/src/Rector/Class_/ReplaceExpectsMethodsInTestsRector.php +++ b/src/Rector/Class_/ReplaceExpectsMethodsInTestsRector.php @@ -18,7 +18,7 @@ use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\Expression; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Class_/UnifyModelDatesWithCastsRector.php b/src/Rector/Class_/UnifyModelDatesWithCastsRector.php index 30a57967..2cbda521 100644 --- a/src/Rector/Class_/UnifyModelDatesWithCastsRector.php +++ b/src/Rector/Class_/UnifyModelDatesWithCastsRector.php @@ -13,9 +13,9 @@ use PhpParser\Node\Stmt\Property; use PHPStan\Type\ObjectType; use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory; -use Rector\Core\NodeManipulator\ClassInsertManipulator; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; +use Rector\NodeManipulator\ClassInsertManipulator; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; use Webmozart\Assert\Assert; diff --git a/src/Rector/Empty_/EmptyToBlankAndFilledFuncRector.php b/src/Rector/Empty_/EmptyToBlankAndFilledFuncRector.php index 8a256144..fe6307dd 100644 --- a/src/Rector/Empty_/EmptyToBlankAndFilledFuncRector.php +++ b/src/Rector/Empty_/EmptyToBlankAndFilledFuncRector.php @@ -7,7 +7,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\BooleanNot; use PhpParser\Node\Expr\Empty_; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Expr/AppEnvironmentComparisonToParameterRector.php b/src/Rector/Expr/AppEnvironmentComparisonToParameterRector.php index 40bf220f..68cb7a23 100644 --- a/src/Rector/Expr/AppEnvironmentComparisonToParameterRector.php +++ b/src/Rector/Expr/AppEnvironmentComparisonToParameterRector.php @@ -13,7 +13,7 @@ use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Scalar\String_; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRector.php b/src/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRector.php index 4274230a..90186cdb 100644 --- a/src/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRector.php +++ b/src/Rector/Expr/SubStrToStartsWithOrEndsWithStaticMethodCallRector/SubStrToStartsWithOrEndsWithStaticMethodCallRector.php @@ -10,8 +10,8 @@ use PhpParser\Node\Expr\BinaryOp\Identical; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\StaticCall; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php b/src/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php index da01b526..5cf92c09 100644 --- a/src/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php +++ b/src/Rector/FuncCall/ArgumentFuncCallToMethodCallRector.php @@ -11,9 +11,9 @@ use PhpParser\Node\Expr\Variable; use PhpParser\Node\Stmt\Class_; use PHPStan\Type\ObjectType; -use Rector\Core\Contract\Rector\ConfigurableRectorInterface; -use Rector\Core\Exception\ShouldNotHappenException; -use Rector\Core\Rector\AbstractRector; +use Rector\Contract\Rector\ConfigurableRectorInterface; +use Rector\Exception\ShouldNotHappenException; +use Rector\Rector\AbstractRector; use Rector\NodeTypeResolver\TypeAnalyzer\ArrayTypeAnalyzer; use Rector\Transform\NodeAnalyzer\FuncCallStaticCallToMethodCallAnalyzer; use RectorLaravel\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface; diff --git a/src/Rector/FuncCall/FactoryFuncCallToStaticCallRector.php b/src/Rector/FuncCall/FactoryFuncCallToStaticCallRector.php index 73cc73b1..dea4b7e7 100644 --- a/src/Rector/FuncCall/FactoryFuncCallToStaticCallRector.php +++ b/src/Rector/FuncCall/FactoryFuncCallToStaticCallRector.php @@ -9,7 +9,7 @@ use PhpParser\Node\Expr\ClassConstFetch; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\StaticCall; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/FuncCall/HelperFuncCallToFacadeClassRector.php b/src/Rector/FuncCall/HelperFuncCallToFacadeClassRector.php index fce95311..5fecd651 100644 --- a/src/Rector/FuncCall/HelperFuncCallToFacadeClassRector.php +++ b/src/Rector/FuncCall/HelperFuncCallToFacadeClassRector.php @@ -6,7 +6,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector.php b/src/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector.php index 2827ad42..b48113c0 100644 --- a/src/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector.php +++ b/src/Rector/FuncCall/NotFilledBlankFuncCallToBlankFilledFuncCallRector.php @@ -7,7 +7,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\BooleanNot; use PhpParser\Node\Expr\FuncCall; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector.php b/src/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector.php index ef3b0f7f..9a7701c7 100644 --- a/src/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector.php +++ b/src/Rector/FuncCall/NowFuncWithStartOfDayMethodCallToTodayFuncRector.php @@ -7,7 +7,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php b/src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php index da679e4d..b90bc78c 100644 --- a/src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php +++ b/src/Rector/FuncCall/RemoveDumpDataDeadCodeRector.php @@ -8,7 +8,7 @@ use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Stmt\Expression; use PhpParser\NodeTraverser; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/FuncCall/SleepFuncToSleepStaticCallRector.php b/src/Rector/FuncCall/SleepFuncToSleepStaticCallRector.php index 9cfecf49..950e4a34 100644 --- a/src/Rector/FuncCall/SleepFuncToSleepStaticCallRector.php +++ b/src/Rector/FuncCall/SleepFuncToSleepStaticCallRector.php @@ -7,7 +7,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Stmt\Expression; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/If_/ThrowIfRector.php b/src/Rector/If_/ThrowIfRector.php index 99876161..bbd23bbf 100644 --- a/src/Rector/If_/ThrowIfRector.php +++ b/src/Rector/If_/ThrowIfRector.php @@ -10,7 +10,7 @@ use PhpParser\Node\Stmt\Expression; use PhpParser\Node\Stmt\If_; use PhpParser\Node\Stmt\Throw_; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/AssertStatusToAssertMethodRector.php b/src/Rector/MethodCall/AssertStatusToAssertMethodRector.php index e290567b..99bd4166 100644 --- a/src/Rector/MethodCall/AssertStatusToAssertMethodRector.php +++ b/src/Rector/MethodCall/AssertStatusToAssertMethodRector.php @@ -10,7 +10,7 @@ use PhpParser\Node\Identifier; use PhpParser\Node\Scalar\LNumber; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php b/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php index 16cfa60d..c7986632 100644 --- a/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php +++ b/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php @@ -14,8 +14,8 @@ use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt\Expression; use PHPStan\Type\ObjectType; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector.php b/src/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector.php index 11bc5bb0..8a9f73b5 100644 --- a/src/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector.php +++ b/src/Rector/MethodCall/DatabaseExpressionToStringToMethodCallRector.php @@ -7,7 +7,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\StaticCall; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php b/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php index 1bc575e4..af240382 100644 --- a/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php +++ b/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php @@ -12,8 +12,8 @@ use PhpParser\Node\Scalar\String_; use PhpParser\Node\VariadicPlaceholder; use PHPStan\Type\ObjectType; -use Rector\Core\Contract\Rector\ConfigurableRectorInterface; -use Rector\Core\Rector\AbstractRector; +use Rector\Contract\Rector\ConfigurableRectorInterface; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; use Webmozart\Assert\Assert; diff --git a/src/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector.php b/src/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector.php index eef873bb..bf46e3c9 100644 --- a/src/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector.php +++ b/src/Rector/MethodCall/EloquentWhereRelationTypeHintingParameterRector.php @@ -12,7 +12,7 @@ use PhpParser\Node\Name; use PhpParser\Node\Name\FullyQualified; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector.php b/src/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector.php index 5684788f..a98baf59 100644 --- a/src/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector.php +++ b/src/Rector/MethodCall/EloquentWhereTypeHintClosureParameterRector.php @@ -12,7 +12,7 @@ use PhpParser\Node\Name; use PhpParser\Node\Name\FullyQualified; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/FactoryApplyingStatesRector.php b/src/Rector/MethodCall/FactoryApplyingStatesRector.php index d019a05b..079e5317 100644 --- a/src/Rector/MethodCall/FactoryApplyingStatesRector.php +++ b/src/Rector/MethodCall/FactoryApplyingStatesRector.php @@ -10,8 +10,8 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\VariadicPlaceholder; use PHPStan\Type\ObjectType; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; use Webmozart\Assert\Assert; diff --git a/src/Rector/MethodCall/JsonCallToExplicitJsonCallRector.php b/src/Rector/MethodCall/JsonCallToExplicitJsonCallRector.php index 90bd0882..fae4d5ff 100644 --- a/src/Rector/MethodCall/JsonCallToExplicitJsonCallRector.php +++ b/src/Rector/MethodCall/JsonCallToExplicitJsonCallRector.php @@ -9,7 +9,7 @@ use PhpParser\Node\Identifier; use PhpParser\Node\Scalar\String_; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php b/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php index cde75f59..ac26be08 100644 --- a/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php +++ b/src/Rector/MethodCall/LumenRoutesStringActionToUsesArrayRector.php @@ -10,7 +10,7 @@ use PhpParser\Node\Expr\ArrayItem; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Scalar\String_; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use RectorLaravel\NodeAnalyzer\LumenRouteRegisteringMethodAnalyzer; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php b/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php index a48ff331..6ed3522b 100644 --- a/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php +++ b/src/Rector/MethodCall/LumenRoutesStringMiddlewareToArrayRector.php @@ -9,7 +9,7 @@ use PhpParser\Node\Expr\ArrayItem; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Scalar\String_; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use RectorLaravel\NodeAnalyzer\LumenRouteRegisteringMethodAnalyzer; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/RedirectBackToBackHelperRector.php b/src/Rector/MethodCall/RedirectBackToBackHelperRector.php index 072290e1..860ee7cf 100644 --- a/src/Rector/MethodCall/RedirectBackToBackHelperRector.php +++ b/src/Rector/MethodCall/RedirectBackToBackHelperRector.php @@ -9,7 +9,7 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Name; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php b/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php index d558fb07..2bf8bc3d 100644 --- a/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php +++ b/src/Rector/MethodCall/RedirectRouteToToRouteHelperRector.php @@ -9,7 +9,7 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Name; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector.php b/src/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector.php index ddeeff5d..90b1eb64 100644 --- a/src/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector.php +++ b/src/Rector/MethodCall/ReplaceWithoutJobsEventsAndNotificationsWithFacadeFakeRector.php @@ -7,7 +7,7 @@ use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/MethodCall/UseComponentPropertyWithinCommandsRector.php b/src/Rector/MethodCall/UseComponentPropertyWithinCommandsRector.php index 5a35c2f8..41fd8700 100644 --- a/src/Rector/MethodCall/UseComponentPropertyWithinCommandsRector.php +++ b/src/Rector/MethodCall/UseComponentPropertyWithinCommandsRector.php @@ -13,7 +13,7 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/Namespace_/FactoryDefinitionRector.php b/src/Rector/Namespace_/FactoryDefinitionRector.php index 8bba9276..e6337c62 100644 --- a/src/Rector/Namespace_/FactoryDefinitionRector.php +++ b/src/Rector/Namespace_/FactoryDefinitionRector.php @@ -16,8 +16,8 @@ use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Expression; use PhpParser\Node\Stmt\Namespace_; -use Rector\Core\PhpParser\Node\CustomNode\FileWithoutNamespace; -use Rector\Core\Rector\AbstractRector; +use Rector\PhpParser\Node\CustomNode\FileWithoutNamespace; +use Rector\Rector\AbstractRector; use RectorLaravel\NodeFactory\ModelFactoryNodeFactory; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/New_/AddGuardToLoginEventRector.php b/src/Rector/New_/AddGuardToLoginEventRector.php index c4ff5db0..b6f5cc8b 100644 --- a/src/Rector/New_/AddGuardToLoginEventRector.php +++ b/src/Rector/New_/AddGuardToLoginEventRector.php @@ -11,7 +11,7 @@ use PhpParser\Node\Expr\Variable; use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt\Expression; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php b/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php index 8d2d81e0..520e8ea6 100644 --- a/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php +++ b/src/Rector/PropertyFetch/OptionalToNullsafeOperatorRector.php @@ -16,10 +16,10 @@ use PhpParser\Node\Expr\NullsafePropertyFetch; use PhpParser\Node\Expr\PropertyFetch; use PhpParser\Node\Scalar; -use Rector\Core\Contract\Rector\ConfigurableRectorInterface; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; -use Rector\Core\ValueObject\PhpVersion; +use Rector\Contract\Rector\ConfigurableRectorInterface; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; +use Rector\ValueObject\PhpVersion; use Rector\VersionBonding\Contract\MinPhpVersionInterface; use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php b/src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php index d259d110..2d087462 100644 --- a/src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php +++ b/src/Rector/PropertyFetch/ReplaceFakerInstanceWithHelperRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\PropertyFetch; use PHPStan\Reflection\ClassReflection; -use Rector\Core\Rector\AbstractRector; -use Rector\Core\Reflection\ReflectionResolver; +use Rector\Rector\AbstractRector; +use Rector\Reflection\ReflectionResolver; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector.php b/src/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector.php index d26f05d8..0ee6d49a 100644 --- a/src/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector.php +++ b/src/Rector/StaticCall/EloquentMagicMethodToQueryBuilderRector.php @@ -10,7 +10,7 @@ use PhpParser\Node; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Identifier; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use ReflectionException; use ReflectionMethod; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; diff --git a/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php b/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php index 3bfae00c..0d59e033 100644 --- a/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php +++ b/src/Rector/StaticCall/MinutesToSecondsInCacheRector.php @@ -11,7 +11,7 @@ use PhpParser\Node\Expr\MethodCall; use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Scalar\LNumber; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use RectorLaravel\ValueObject\TypeToTimeMethodAndPosition; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php b/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php index 7e013abe..c7484629 100644 --- a/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php +++ b/src/Rector/StaticCall/Redirect301ToPermanentRedirectRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector.php b/src/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector.php index 80b6c2a3..6f835c1b 100644 --- a/src/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector.php +++ b/src/Rector/StaticCall/ReplaceAssertTimesSendWithAssertSentTimesRector.php @@ -6,7 +6,7 @@ use PhpParser\Node\Expr\StaticCall; use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractRector; +use Rector\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php b/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php index 980183b6..97276d72 100644 --- a/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php +++ b/src/Rector/StaticCall/RequestStaticValidateToInjectRector.php @@ -16,8 +16,8 @@ use PHPStan\Analyser\Scope; use PHPStan\Reflection\ClassReflection; use PHPStan\Type\ObjectType; -use Rector\Core\Rector\AbstractScopeAwareRector; -use Rector\Core\Reflection\ReflectionResolver; +use Rector\Rector\AbstractScopeAwareRector; +use Rector\Reflection\ReflectionResolver; use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; diff --git a/src/Rector/StaticCall/RouteActionCallableRector.php b/src/Rector/StaticCall/RouteActionCallableRector.php index 3a1eaed0..2b487050 100644 --- a/src/Rector/StaticCall/RouteActionCallableRector.php +++ b/src/Rector/StaticCall/RouteActionCallableRector.php @@ -15,10 +15,10 @@ use PhpParser\Node\Scalar\String_; use PHPStan\Analyser\Scope; use PHPStan\Reflection\Php\PhpMethodReflection; -use Rector\Core\Contract\Rector\ConfigurableRectorInterface; -use Rector\Core\PhpParser\Node\Value\ValueResolver; -use Rector\Core\Rector\AbstractRector; -use Rector\Core\Reflection\ReflectionResolver; +use Rector\Contract\Rector\ConfigurableRectorInterface; +use Rector\PhpParser\Node\Value\ValueResolver; +use Rector\Rector\AbstractRector; +use Rector\Reflection\ReflectionResolver; use Rector\NodeTypeResolver\Node\AttributeKey; use RectorLaravel\NodeFactory\RouterRegisterNodeAnalyzer; use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample; diff --git a/src/ValueObject/ArgumentFuncCallToMethodCall.php b/src/ValueObject/ArgumentFuncCallToMethodCall.php index 920a098f..8049acf2 100644 --- a/src/ValueObject/ArgumentFuncCallToMethodCall.php +++ b/src/ValueObject/ArgumentFuncCallToMethodCall.php @@ -4,7 +4,7 @@ namespace RectorLaravel\ValueObject; -use Rector\Core\Validation\RectorAssert; +use Rector\Validation\RectorAssert; use RectorLaravel\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface; final readonly class ArgumentFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface diff --git a/src/ValueObject/ArrayFuncCallToMethodCall.php b/src/ValueObject/ArrayFuncCallToMethodCall.php index 7430c247..6abdb8c0 100644 --- a/src/ValueObject/ArrayFuncCallToMethodCall.php +++ b/src/ValueObject/ArrayFuncCallToMethodCall.php @@ -4,7 +4,7 @@ namespace RectorLaravel\ValueObject; -use Rector\Core\Validation\RectorAssert; +use Rector\Validation\RectorAssert; use RectorLaravel\Contract\ValueObject\ArgumentFuncCallToMethodCallInterface; final readonly class ArrayFuncCallToMethodCall implements ArgumentFuncCallToMethodCallInterface