Skip to content

Commit b14da98

Browse files
committed
Fix rector config
1 parent 49d0e43 commit b14da98

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

rector.php

-26
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,14 @@
22

33
declare(strict_types=1);
44

5-
use Rector\CodeQuality\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector;
6-
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
7-
use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
8-
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
9-
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
105
use Rector\Config\RectorConfig;
11-
use Rector\EarlyReturn\Rector\Return_\ReturnBinaryOrToEarlyReturnRector;
12-
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
13-
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
146
use Rector\Set\ValueObject\LevelSetList;
15-
use Rector\Set\ValueObject\SetList;
16-
use Rector\TypeDeclaration\Rector\FunctionLike\AddReturnTypeDeclarationFromYieldsRector;
177

188
return static function (RectorConfig $config): void {
199
$config->paths([__DIR__ . '/src']);
2010
$config->cacheDirectory(__DIR__ . '/vendor/.cache.rector');
2111

2212
$config->sets([
2313
LevelSetList::UP_TO_PHP_81,
24-
SetList::TYPE_DECLARATION,
25-
SetList::CODE_QUALITY,
26-
SetList::CODING_STYLE,
27-
SetList::EARLY_RETURN,
28-
]);
29-
30-
$config->skip([
31-
ClassPropertyAssignToConstructorPromotionRector::class,
32-
ReadOnlyPropertyRector::class,
33-
CatchExceptionNameMatchingTypeRector::class,
34-
SplitDoubleAssignRector::class,
35-
FlipTypeControlToUseExclusiveTypeRector::class,
36-
ReturnBinaryOrToEarlyReturnRector::class,
37-
LocallyCalledStaticMethodToNonStaticRector::class,
38-
EncapsedStringsToSprintfRector::class,
39-
AddReturnTypeDeclarationFromYieldsRector::class,
4014
]);
4115
};

0 commit comments

Comments
 (0)