forked from smrealms/smr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
42 lines (39 loc) · 1.54 KB
/
rector.php
File metadata and controls
42 lines (39 loc) · 1.54 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
34
35
36
37
38
39
40
41
42
<?php declare(strict_types=1);
use Rector\CodeQuality\Rector\Assign\CombinedAssignRector;
use Rector\Config\RectorConfig;
use Rector\Php53\Rector\FuncCall\DirNameFileConstantToDirConstantRector;
use Rector\Php70\Rector\MethodCall\ThisCallOnStaticMethodToStaticCallRector;
use Rector\Php70\Rector\StmtsAwareInterface\IfIssetToCoalescingRector;
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php80\Rector\FuncCall\ClassOnObjectRector;
use Rector\Php81\Rector\Array_\ArrayToFirstClassCallableRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\Php83\Rector\ClassConst\AddTypeToConstRector;
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/test',
__DIR__ . '/src',
])
->withImportNames(true, false)
->withRules([
AddTypeToConstRector::class,
AddOverrideAttributeToOverriddenMethodsRector::class,
ArrayToFirstClassCallableRector::class,
ClassOnObjectRector::class,
ClassPropertyAssignToConstructorPromotionRector::class,
CombinedAssignRector::class,
DirNameFileConstantToDirConstantRector::class,
IfIssetToCoalescingRector::class,
JsonThrowOnErrorRector::class,
NullCoalescingOperatorRector::class,
ReadOnlyPropertyRector::class,
ThisCallOnStaticMethodToStaticCallRector::class,
])
->withSets([
PHPUnitSetList::PHPUNIT_100,
])
;