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 23
23
use Rector \Config \RectorConfig ;
24
24
use Rector \Core \ValueObject \PhpVersion ;
25
25
use Rector \DeadCode \Rector \ClassMethod \RemoveUnusedPromotedPropertyRector ;
26
+ use Rector \DeadCode \Rector \If_ \UnwrapFutureCompatibleIfPhpVersionRector ;
26
27
use Rector \DeadCode \Rector \MethodCall \RemoveEmptyMethodCallRector ;
28
+ use Rector \DeadCode \Rector \Property \RemoveUnusedPrivatePropertyRector ;
27
29
use Rector \DeadCode \Rector \StmtsAwareInterface \RemoveJustPropertyFetchForAssignRector ;
28
30
use Rector \EarlyReturn \Rector \Foreach_ \ChangeNestedForeachIfsToEarlyContinueRector ;
29
31
use Rector \EarlyReturn \Rector \If_ \ChangeIfElseValueAssignToEarlyReturnRector ;
108
110
RemoveJustPropertyFetchForAssignRector::class => [
109
111
__DIR__ . '/src/Models/UserModel.php ' ,
110
112
],
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
+ ],
111
121
]);
112
122
// auto import fully qualified class names
113
123
$ rectorConfig ->importNames ();
You can’t perform that action at this time.
0 commit comments