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