Skip to content

Commit dce2a12

Browse files
committed
chore: add skip for UserModelGeneratorTest.php
1 parent 8d63969 commit dce2a12

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

rector.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
use Rector\Config\RectorConfig;
2424
use Rector\Core\ValueObject\PhpVersion;
2525
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
26+
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
2627
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
28+
use Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector;
2729
use Rector\DeadCode\Rector\StmtsAwareInterface\RemoveJustPropertyFetchForAssignRector;
2830
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
2931
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
@@ -108,6 +110,14 @@
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();

0 commit comments

Comments
 (0)