forked from phptal/PHPTAL
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrector.php
28 lines (25 loc) · 852 Bytes
/
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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
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,
FirstClassCallableRector::class,
MixedTypeRector::class,
])
->withPhpSets(php81: true)
->withPreparedSets(deadCode: true)
->withRules([
AddLiteralSeparatorToNumberRector::class,
ClosureToArrowFunctionRector::class,
]);