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