-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathrector.php
29 lines (26 loc) · 888 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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php80\Rector\FunctionLike\MixedTypeRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/po',
__DIR__ . '/Site',
__DIR__ . '/tests',
__DIR__ . '/www',
])
// uncomment to reach your current PHP version
->withPhpSets(php82: true)
->withRules([
])
->withSkip([
ClassPropertyAssignToConstructorPromotionRector::class,
MixedTypeRector::class,
NullToStrictStringFuncCallArgRector::class,
RemoveUnusedVariableInCatchRector::class,
])
->withTypeCoverageLevel(1)
->withDeadCodeLevel(1);