File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 2323use Rector \Config \RectorConfig ;
2424use Rector \Core \ValueObject \PhpVersion ;
2525use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPromotedPropertyRector ;
26+ use Rector \DeadCode \Rector \If_ \UnwrapFutureCompatibleIfPhpVersionRector ;
2627use Rector \DeadCode \Rector \MethodCall \RemoveEmptyMethodCallRector ;
28+ use Rector \DeadCode \Rector \Property \RemoveUnusedPrivatePropertyRector ;
2729use Rector \DeadCode \Rector \StmtsAwareInterface \RemoveJustPropertyFetchForAssignRector ;
2830use Rector \EarlyReturn \Rector \Foreach_ \ChangeNestedForeachIfsToEarlyContinueRector ;
2931use Rector \EarlyReturn \Rector \If_ \ChangeIfElseValueAssignToEarlyReturnRector ;
108110 RemoveJustPropertyFetchForAssignRector::class => [
109111 __DIR__ . '/src/Models/UserModel.php ' ,
110112 ],
113+
114+ // Ignore tests that use CodeIgniter::CI_VERSION
115+ UnwrapFutureCompatibleIfPhpVersionRector::class => [
116+ __DIR__ . '/tests/Commands/UserModelGeneratorTest.php ' ,
117+ ],
118+ RemoveUnusedPrivatePropertyRector::class => [
119+ __DIR__ . '/tests/Commands/UserModelGeneratorTest.php ' ,
120+ ],
111121 ]);
112122 // auto import fully qualified class names
113123 $ rectorConfig ->importNames ();
You can’t perform that action at this time.
0 commit comments