forked from googleads/googleads-php-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
44 lines (41 loc) · 1.68 KB
/
rector.php
File metadata and controls
44 lines (41 loc) · 1.68 KB
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
<?php
use Rector\Config\RectorConfig;
use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector;
use Rector\Php54\Rector\Array_\LongArrayToShortArrayRector;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php70\Rector\Ternary\TernaryToNullCoalescingRector;
use Rector\Php71\Rector\List_\ListToArrayDestructRector;
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php80\Rector\FuncCall\ClassOnObjectRector;
use Rector\Php80\Rector\NotIdentical\StrContainsRector;
use Rector\Php80\Rector\Ternary\GetDebugTypeRector;
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets()
->withPhpVersion(PhpVersion::PHP_85)
->withRules([
ExplicitNullableParamTypeRector::class
])
->withSkip([
ClassPropertyAssignToConstructorPromotionRector::class,
LongArrayToShortArrayRector::class,
StringClassNameToClassConstantRector::class,
TernaryToNullCoalescingRector::class,
StrContainsRector::class,
RemoveUnusedVariableInCatchRector::class,
NullCoalescingOperatorRector::class,
ListToArrayDestructRector::class,
GetDebugTypeRector::class,
DirNameFileConstantToDirConstantRector::class,
ClosureToArrowFunctionRector::class,
ClassOnObjectRector::class,
])
;