-
Notifications
You must be signed in to change notification settings - Fork 105
/
rector.php
46 lines (41 loc) · 1.49 KB
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
return RectorConfig::configure()
->withPaths([
__DIR__.'/config',
__DIR__.'/src',
__DIR__.'/tests',
])
->withSkip([
\Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector::class => [
__DIR__.'/src/Exceptions',
],
])
->withSets([
LevelSetList::UP_TO_PHP_74,
])
->withSkip([
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector::class,
\Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector::class,
\Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector::class,
\Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector::class,
\Rector\Naming\Rector\ClassMethod\RenameParamToMatchTypeRector::class,
\Rector\Naming\Rector\ClassMethod\RenameVariableToMatchNewTypeRector::class,
\Rector\Naming\Rector\Assign\RenameVariableToMatchMethodCallReturnTypeRector::class,
\Rector\Naming\Rector\Foreach_\RenameForeachValueVariableToMatchExprVariableRector::class,
\Rector\TypeDeclaration\Rector\ClassMethod\NumericReturnTypeFromStrictScalarReturnsRector::class,
\Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictParamRector::class,
])
->withPreparedSets(
true,
true,
true,
true,
true,
true,
true,
true,
true,
);