-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathrector.php
More file actions
25 lines (22 loc) · 850 Bytes
/
Copy pathrector.php
File metadata and controls
25 lines (22 loc) · 850 Bytes
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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\Php82\Rector\Class_\ReadOnlyClassRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/Admin',
__DIR__ . '/po',
])
// uncomment to reach your current PHP version
->withPhpSets(php82: true)
->withSkip([
ClassPropertyAssignToConstructorPromotionRector::class,
NullToStrictStringFuncCallArgRector::class,
RemoveUnusedVariableInCatchRector::class,
ReadOnlyPropertyRector::class,
ReadOnlyClassRector::class,
]);