-
-
Notifications
You must be signed in to change notification settings - Fork 100
/
rector.php
30 lines (27 loc) · 938 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
29
30
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withAutoloadPaths([
__DIR__ . '/vendor/autoload.php',
__DIR__ . '/vendor-bin/rector/vendor/autoload.php',
])
->withImportNames(removeUnusedImports: true)
->withPhpSets(php82: true)
->withSets([
PHPUnitSetList::PHPUNIT_100,
])
->withSkip([
\Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector::class,
\Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector::class,
\Rector\Php55\Rector\String_\StringClassNameToClassConstantRector::class => [
__DIR__.'/src/Configuration/Configuration.php',
],
\Rector\Php73\Rector\String_\SensitiveHereNowDocRector::class,
]);