-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrector.php
More file actions
21 lines (18 loc) · 592 Bytes
/
rector.php
File metadata and controls
21 lines (18 loc) · 592 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\Array_\ArrayToFirstClassCallableRector;
return RectorConfig::configure()
->withPhpSets(php82: true)
->withPreparedSets(deadCode: true, codeQuality: true, codingStyle: true, typeDeclarations: true, naming: true)
->withImportNames(removeUnusedImports: true)
->withPaths([
__DIR__ . '/config',
__DIR__ . '/src',
__DIR__ . '/spec',
__DIR__ . '/rector.php'
])
->withRootFiles()
->withSkip([
ArrayToFirstClassCallableRector::class,
]);