From 5520d8231d8c5136013c9bc11e4b9ef8a7786e94 Mon Sep 17 00:00:00 2001 From: lubiana Date: Mon, 12 Dec 2022 19:32:54 +0100 Subject: [PATCH] remove deprecated rectors --- config/rector.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config/rector.php b/config/rector.php index f49f121..fb33821 100644 --- a/config/rector.php +++ b/config/rector.php @@ -26,8 +26,6 @@ use Rector\EarlyReturn\Rector\Return_\ReturnBinaryOrToEarlyReturnRector; use Rector\EarlyReturn\Rector\StmtsAwareInterface\ReturnEarlyIfVariableRector; use Rector\Set\ValueObject\LevelSetList; use Rector\TypeDeclaration\Rector\ArrowFunction\AddArrowFunctionReturnTypeRector; -use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayParamDocTypeRector; -use Rector\TypeDeclaration\Rector\ClassMethod\AddArrayReturnDocTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddMethodCallBasedStrictParamTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationBasedOnParentClassMethodRector; use Rector\TypeDeclaration\Rector\ClassMethod\ParamTypeByMethodCallTypeRector; @@ -38,7 +36,6 @@ use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNativeCallRect use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNewArrayRector; use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictTypedPropertyRector; use Rector\TypeDeclaration\Rector\Closure\AddClosureReturnTypeRector; -use Rector\TypeDeclaration\Rector\FunctionLike\ReturnTypeDeclarationRector; use Rector\TypeDeclaration\Rector\Param\ParamTypeFromStrictTypedPropertyRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector; use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictGetterMethodReturnTypeRector; @@ -46,8 +43,6 @@ use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictGetterMethodRe return static function (RectorConfig $c): void { $c->sets([LevelSetList::UP_TO_PHP_81]); $c->rules([ - AddArrayParamDocTypeRector::class, - AddArrayReturnDocTypeRector::class, AddArrowFunctionReturnTypeRector::class, AddClosureReturnTypeRector::class, AddMethodCallBasedStrictParamTypeRector::class, @@ -73,7 +68,6 @@ return static function (RectorConfig $c): void { ReturnBinaryAndToEarlyReturnRector::class, ReturnBinaryOrToEarlyReturnRector::class, ReturnEarlyIfVariableRector::class, - ReturnTypeDeclarationRector::class, ReturnTypeFromReturnNewRector::class, ReturnTypeFromStrictBoolReturnExprRector::class, ReturnTypeFromStrictNativeCallRector::class,