File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 "phpstan/phpstan" : " ^1.7.1" ,
2525 "phpunit/phpunit" : " ^9.1" ,
2626 "predis/predis" : " ^1.1 || ^2.0" ,
27- "rector/rector" : " 0.13.8 "
27+ "rector/rector" : " 0.13.9 "
2828 },
2929 "suggest" : {
3030 "ext-fileinfo" : " Improves mime type detection for files"
Original file line number Diff line number Diff line change 2929use Rector \CodingStyle \Rector \FuncCall \CountArrayToEmptyArrayComparisonRector ;
3030use Rector \Config \RectorConfig ;
3131use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPrivateMethodRector ;
32+ use Rector \DeadCode \Rector \If_ \RemoveAlwaysTrueIfConditionRector ;
3233use Rector \DeadCode \Rector \If_ \UnwrapFutureCompatibleIfPhpVersionRector ;
3334use Rector \DeadCode \Rector \MethodCall \RemoveEmptyMethodCallRector ;
35+ use Rector \DeadCode \Rector \Plus \RemoveDeadZeroAndOneOperationRector ;
3436use Rector \EarlyReturn \Rector \Foreach_ \ChangeNestedForeachIfsToEarlyContinueRector ;
3537use Rector \EarlyReturn \Rector \If_ \ChangeIfElseValueAssignToEarlyReturnRector ;
3638use Rector \EarlyReturn \Rector \If_ \RemoveAlwaysElseRector ;
7173 __DIR__ . '/system/Test/bootstrap.php ' ,
7274 ]);
7375
76+ $ rectorConfig ->phpstanConfig (__DIR__ . '/phpstan.neon.dist ' );
77+
7478 // is there a file you need to skip?
7579 $ rectorConfig ->skip ([
7680 __DIR__ . '/app/Views ' ,
127131 GetMockBuilderGetMockToCreateMockRector::class => [
128132 __DIR__ . '/tests/system/Email/EmailTest.php ' ,
129133 ],
134+
135+ // buggy on read based on @var on property
136+ RemoveAlwaysTrueIfConditionRector::class,
137+
138+ // buggy on string * int
139+ RemoveDeadZeroAndOneOperationRector::class,
130140 ]);
131141
132142 // auto import fully qualified class names
You can’t perform that action at this time.
0 commit comments