forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
php70.yaml
27 lines (23 loc) · 1.22 KB
/
php70.yaml
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
imports:
- { resource: "../database-migration/mysql-to-mysqli.yaml" }
services:
Rector\Php\Rector\FunctionLike\Php4ConstructorRector: ~
Rector\Php\Rector\Ternary\TernaryToNullCoalescingRector: ~
Rector\Php\Rector\FuncCall\RandomFunctionRector: ~
Rector\Php\Rector\FunctionLike\ExceptionHandlerTypehintRector: ~
Rector\Php\Rector\FuncCall\MultiDirnameRector: ~
Rector\Php\Rector\List_\ListSplitStringRector: ~
Rector\Php\Rector\List_\EmptyListRector: ~
# be careful, run this just once, since it can keep swapping order back and forth
Rector\Php\Rector\List_\ListSwapArrayOrderRector: ~
Rector\Php\Rector\FuncCall\CallUserMethodRector : ~
Rector\Php\Rector\FuncCall\EregToPregMatchRector: ~
Rector\Php\Rector\Switch_\ReduceMultipleDefaultSwitchRector: ~
Rector\Php\Rector\Ternary\TernaryToSpaceshipRector: ~
Rector\Php\Rector\If_\IfToSpaceshipRector: ~
Rector\Php\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector: ~
Rector\Php\Rector\MethodCall\ThisCallOnStaticMethodToStaticCallRector: ~
Rector\Rector\Function_\RenameFunctionRector:
# https://3v4l.org/1s1St
mktime: 'time'
Rector\Php\Rector\Break_\BreakNotInLoopOrSwitchToReturnRector: ~