-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathrector.php
More file actions
33 lines (30 loc) · 1.25 KB
/
Copy pathrector.php
File metadata and controls
33 lines (30 loc) · 1.25 KB
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
31
32
33
<?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;
return RectorConfig::configure()
// Set the correct paths to all the PHP files in your project
->withPaths([
__DIR__ . '/Building',
])
// Choose the correct PHP version for your project
->withPhpSets(php82: true)
->withRules([
// any additional rules can be added here
// see https://getrector.com/find-rule
])
->withSkip([
// any rules that are part of the PHP set but that you want
// to skip can be listed here. The following are common ones
// that introduce a lot of changes to legacy code bases.
// For new projects, you should probably not skip anything.
ClassPropertyAssignToConstructorPromotionRector::class,
NullToStrictStringFuncCallArgRector::class,
RemoveUnusedVariableInCatchRector::class,
])
// See https://getrector.com/documentation/integration-to-new-project
// for other configuration settings
->withTypeCoverageLevel(1)
->withDeadCodeLevel(0);