Skip to content

Commit 0b01105

Browse files
committed
update config
1 parent a51d324 commit 0b01105

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

rector.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
44
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
55
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
6-
use Rector\CodeQuality\Rector\For_\ForToForeachRector;
76
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
8-
use Rector\CodeQuality\Rector\FuncCall\AddPregQuoteDelimiterRector;
97
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
108
use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector;
119
use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector;
@@ -21,7 +19,6 @@
2119
use Rector\Config\RectorConfig;
2220
use Rector\Core\ValueObject\PhpVersion;
2321
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
24-
use Rector\DeadCode\Rector\MethodCall\RemoveEmptyMethodCallRector;
2522
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
2623
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
2724
use Rector\EarlyReturn\Rector\If_\RemoveAlwaysElseRector;
@@ -31,7 +28,6 @@
3128
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
3229
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
3330
use Rector\PHPUnit\Set\PHPUnitSetList;
34-
use Rector\PSR4\Rector\FileWithoutNamespace\NormalizeNamespaceByPSR4ComposerAutoloadRector;
3531
use Rector\Set\ValueObject\LevelSetList;
3632
use Rector\Set\ValueObject\SetList;
3733

@@ -74,17 +70,6 @@
7470
// Note: requires php 8
7571
RemoveUnusedPromotedPropertyRector::class,
7672

77-
// Ignore tests that might make calls without a result
78-
RemoveEmptyMethodCallRector::class => [
79-
__DIR__ . '/tests',
80-
],
81-
82-
// Ignore files that should not be namespaced
83-
NormalizeNamespaceByPSR4ComposerAutoloadRector::class => [
84-
__DIR__ . '/src/Helpers',
85-
__DIR__ . '/tests/_support',
86-
],
87-
8873
// May load view files directly when detecting classes
8974
StringClassNameToClassConstantRector::class,
9075

@@ -94,7 +79,6 @@
9479
$rectorConfig->rule(SimplifyUselessVariableRector::class);
9580
$rectorConfig->rule(RemoveAlwaysElseRector::class);
9681
$rectorConfig->rule(CountArrayToEmptyArrayComparisonRector::class);
97-
$rectorConfig->rule(ForToForeachRector::class);
9882
$rectorConfig->rule(ChangeNestedForeachIfsToEarlyContinueRector::class);
9983
$rectorConfig->rule(ChangeIfElseValueAssignToEarlyReturnRector::class);
10084
$rectorConfig->rule(SimplifyStrposLowerRector::class);
@@ -107,12 +91,10 @@
10791
$rectorConfig->rule(UnusedForeachValueToArrayKeysRector::class);
10892
$rectorConfig->rule(ChangeArrayPushToArrayAssignRector::class);
10993
$rectorConfig->rule(UnnecessaryTernaryExpressionRector::class);
110-
$rectorConfig->rule(AddPregQuoteDelimiterRector::class);
11194
$rectorConfig->rule(SimplifyRegexPatternRector::class);
11295
$rectorConfig->rule(FuncGetArgsToVariadicParamRector::class);
11396
$rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class);
11497
$rectorConfig->rule(SimplifyEmptyArrayCheckRector::class);
115-
$rectorConfig->rule(NormalizeNamespaceByPSR4ComposerAutoloadRector::class);
11698
$rectorConfig
11799
->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [
118100
// Set to false if you use in libraries, or it does create breaking changes.

0 commit comments

Comments
 (0)