|
13 | 13 |
|
14 | 14 | use Rector\Caching\ValueObject\Storage\FileCacheStorage; |
15 | 15 | use Rector\CodeQuality\Rector\BooleanNot\NegatedAndsToPositiveOrsRector; |
16 | | -use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector; |
17 | 16 | use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector; |
18 | 17 | use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector; |
19 | 18 | use Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector; |
20 | | -use Rector\CodeQuality\Rector\Ternary\TernaryEmptyArrayArrayDimFetchToCoalesceRector; |
21 | 19 | use Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector; |
22 | 20 | use Rector\CodingStyle\Rector\ClassMethod\MakeInheritedMethodVisibilitySameAsParentRector; |
23 | 21 | use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector; |
|
49 | 47 | use Rector\TypeDeclaration\Rector\Function_\AddFunctionVoidReturnTypeWhereNoReturnRector; |
50 | 48 | use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector; |
51 | 49 | use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector; |
| 50 | +use Rector\TypeDeclaration\Rector\StmtsAwareInterface\SafeDeclareStrictTypesRector; |
52 | 51 | use Utils\Rector\PassStrictParameterToFunctionParameterRector; |
53 | 52 | use Utils\Rector\RemoveErrorSuppressInTryCatchStmtsRector; |
54 | 53 | use Utils\Rector\UnderscoreToCamelCaseVariableNameRector; |
55 | 54 |
|
56 | 55 | return RectorConfig::configure() |
57 | 56 | ->withPhpSets(php82: true) |
58 | | - ->withPreparedSets(deadCode: true, instanceOf: true, phpunitCodeQuality: true) |
| 57 | + ->withPreparedSets(deadCode: true, codeQuality: true, instanceOf: true, phpunitCodeQuality: true) |
59 | 58 | ->withComposerBased(phpunit: true) |
60 | 59 | ->withParallel(120, 8, 10) |
61 | 60 | ->withCache( |
|
177 | 176 |
|
178 | 177 | // to be applied in separate PRs to ease review |
179 | 178 | NegatedAndsToPositiveOrsRector::class, |
| 179 | + SafeDeclareStrictTypesRector::class, |
180 | 180 | ]) |
181 | 181 | // auto import fully qualified class names |
182 | 182 | ->withImportNames() |
|
193 | 193 | RemoveErrorSuppressInTryCatchStmtsRector::class, |
194 | 194 | FuncGetArgsToVariadicParamRector::class, |
195 | 195 | MakeInheritedMethodVisibilitySameAsParentRector::class, |
196 | | - SimplifyEmptyCheckOnEmptyArrayRector::class, |
197 | | - TernaryEmptyArrayArrayDimFetchToCoalesceRector::class, |
198 | 196 | DisallowedEmptyRuleFixerRector::class, |
199 | 197 | PrivatizeFinalClassPropertyRector::class, |
200 | 198 | VersionCompareFuncCallToConstantRector::class, |
|
208 | 206 | ->withConfiguredRule(RenameConstantRector::class, [ |
209 | 207 | 'FILTER_DEFAULT' => 'FILTER_UNSAFE_RAW', |
210 | 208 | ]) |
211 | | - ->withCodeQualityLevel(61) |
212 | 209 | ->reportUnusedSkips(); |
0 commit comments