|
28 | 28 | use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; |
29 | 29 | use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; |
30 | 30 | use Rector\Config\RectorConfig; |
31 | | -use Rector\Core\ValueObject\PhpVersion; |
32 | 31 | use Rector\DeadCode\Rector\Cast\RecastingRemovalRector; |
33 | 32 | use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; |
34 | 33 | use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector; |
35 | 34 | use Rector\DeadCode\Rector\Property\RemoveUnusedPrivatePropertyRector; |
36 | | -use Rector\DeadCode\Rector\StmtsAwareInterface\RemoveJustPropertyFetchForAssignRector; |
37 | 35 | use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; |
38 | 36 | use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; |
39 | 37 | use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector; |
|
46 | 44 | use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; |
47 | 45 | use Rector\Set\ValueObject\LevelSetList; |
48 | 46 | use Rector\Set\ValueObject\SetList; |
| 47 | +use Rector\ValueObject\PhpVersion; |
49 | 48 |
|
50 | 49 | return static function (RectorConfig $rectorConfig): void { |
51 | 50 | $rectorConfig->sets([ |
|
99 | 98 | // May load view files directly when detecting classes |
100 | 99 | StringClassNameToClassConstantRector::class, |
101 | 100 |
|
102 | | - // See https://github.com/codeigniter4/shield/issues/228 |
103 | | - RemoveJustPropertyFetchForAssignRector::class => [ |
104 | | - __DIR__ . '/src/Models/UserModel.php', |
105 | | - ], |
106 | | - |
107 | 101 | // Ignore tests that use CodeIgniter::CI_VERSION |
108 | 102 | UnwrapFutureCompatibleIfPhpVersionRector::class => [ |
109 | 103 | __DIR__ . '/src/Test/MockInputOutput.php', |
|
0 commit comments