|
12 | 12 | */
|
13 | 13 |
|
14 | 14 | use Rector\Caching\ValueObject\Storage\FileCacheStorage;
|
15 |
| -use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector; |
16 | 15 | use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
|
17 | 16 | use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
|
18 | 17 | use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
|
19 | 18 | use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
|
| 19 | +use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector; |
20 | 20 | use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
|
21 | 21 | use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
|
22 | 22 | use Rector\CodeQuality\Rector\If_\ShortenElseIfRector;
|
|
171 | 171 |
|
172 | 172 | // Unnecessary (string) is inserted
|
173 | 173 | NullToStrictStringFuncCallArgRector::class,
|
| 174 | + |
| 175 | + CompactToVariablesRector::class, |
174 | 176 | ])
|
175 | 177 | // auto import fully qualified class names
|
176 | 178 | ->withImportNames(removeUnusedImports: true)
|
|
196 | 198 | EmptyOnNullableObjectToInstanceOfRector::class,
|
197 | 199 | DisallowedEmptyRuleFixerRector::class,
|
198 | 200 | PrivatizeFinalClassPropertyRector::class,
|
199 |
| - CompleteDynamicPropertiesRector::class, |
200 | 201 | BooleanInIfConditionRuleFixerRector::class,
|
201 | 202 | VersionCompareFuncCallToConstantRector::class,
|
202 | 203 | AddClosureVoidReturnTypeWhereNoReturnRector::class,
|
|
210 | 211 | // keep '\\' prefix string on string '\Foo\Bar'
|
211 | 212 | StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
|
212 | 213 | ])
|
213 |
| - ->withCodeQualityLevel(24); |
| 214 | + ->withCodeQualityLevel(31); |
0 commit comments