|
2 | 2 |
|
3 | 3 | use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; |
4 | 4 | use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; |
| 5 | +use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector; |
5 | 6 | use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; |
6 | 7 | use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; |
7 | 8 | use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector; |
|
12 | 13 | use Rector\CodeQuality\Rector\If_\ShortenElseIfRector; |
13 | 14 | use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector; |
14 | 15 | use Rector\CodeQuality\Rector\If_\SimplifyIfReturnBoolRector; |
| 16 | +use Rector\CodeQuality\Rector\Ternary\TernaryEmptyArrayArrayDimFetchToCoalesceRector; |
15 | 17 | use Rector\CodeQuality\Rector\Ternary\UnnecessaryTernaryExpressionRector; |
16 | 18 | use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector; |
17 | 19 | use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; |
|
31 | 33 | use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; |
32 | 34 | use Rector\Set\ValueObject\LevelSetList; |
33 | 35 | use Rector\Set\ValueObject\SetList; |
| 36 | +use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; |
| 37 | +use Rector\TypeDeclaration\Rector\Empty_\EmptyOnNullableObjectToInstanceOfRector; |
34 | 38 | use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; |
35 | 39 |
|
36 | 40 | return static function (RectorConfig $rectorConfig): void { |
|
108 | 112 | $rectorConfig->rule(FuncGetArgsToVariadicParamRector::class); |
109 | 113 | $rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class); |
110 | 114 | $rectorConfig->rule(SimplifyEmptyArrayCheckRector::class); |
| 115 | + $rectorConfig->rule(SimplifyEmptyCheckOnEmptyArrayRector::class); |
| 116 | + $rectorConfig->rule(TernaryEmptyArrayArrayDimFetchToCoalesceRector::class); |
| 117 | + $rectorConfig->rule(EmptyOnNullableObjectToInstanceOfRector::class); |
| 118 | + $rectorConfig->rule(DisallowedEmptyRuleFixerRector::class); |
111 | 119 | $rectorConfig |
112 | 120 | ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ |
113 | 121 | /** |
|
0 commit comments