forked from LDAPAccountManager/lam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrector.php
34 lines (32 loc) · 1011 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
31
32
33
34
<?php
use Rector\Config\RectorConfig;
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/lam/help',
__DIR__ . '/lam/lib',
__DIR__ . '/lam/templates',
__DIR__ . '/lam/tests',
])
->withSets([
SetList::DEAD_CODE,
LevelSetList::UP_TO_PHP_81
])
->withSkip([
__DIR__ . '/lam/lib/3rdParty',
NullToStrictStringFuncCallArgRector::class,
ReadOnlyPropertyRector::class,
ClassPropertyAssignToConstructorPromotionRector::class,
StaticCallOnNonStaticToInstanceCallRector::class,
StringifyStrNeedlesRector::class
])
->withFileExtensions([
'php',
// 'inc'
]);