forked from phptal/PHPTAL
-
Notifications
You must be signed in to change notification settings - Fork 2
/
rector.php
32 lines (29 loc) · 1.03 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
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector;
use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
use Rector\Php81\Rector\Array_\FirstClassCallableRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests'
])
->withImportNames()
->withSkip([
StringClassNameToClassConstantRector::class,
JsonThrowOnErrorRector::class,
FirstClassCallableRector::class,
MixedTypeRector::class,
])
->withPhpSets(php81: true)
->withPreparedSets(deadCode: true)
->withRules([
IntvalToTypeCastRector::class,
AddLiteralSeparatorToNumberRector::class,
ClosureToArrowFunctionRector::class,
]);