Skip to content

Commit 5b3c374

Browse files
authored
Merge pull request #8944 from samsonasik/chore-clean-rector-skip-regex
chore: Clean up Rector skip config on SimplifyRegexPatternRector and RemoveUnusedPromotedPropertyRector
2 parents 801b4f3 + 48f36ef commit 5b3c374

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

rector.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
1919
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
2020
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
21-
use Rector\CodeQuality\Rector\FuncCall\SimplifyRegexPatternRector;
2221
use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector;
2322
use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector;
2423
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
@@ -36,7 +35,6 @@
3635
use Rector\Config\RectorConfig;
3736
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector;
3837
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector;
39-
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector;
4038
use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector;
4139
use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector;
4240
use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector;
@@ -107,11 +105,6 @@
107105

108106
YieldDataProviderRector::class,
109107

110-
RemoveUnusedPromotedPropertyRector::class => [
111-
// Bug in rector 1.0.0. See https://github.com/rectorphp/rector-src/pull/5573
112-
__DIR__ . '/tests/_support/Entity/CustomUser.php',
113-
],
114-
115108
RemoveUnusedPrivateMethodRector::class => [
116109
// private method called via getPrivateMethodInvoker
117110
__DIR__ . '/tests/system/Test/ReflectionHelperTest.php',
@@ -155,8 +148,6 @@
155148
// use mt_rand instead of random_int on purpose on non-cryptographically random
156149
RandomFunctionRector::class,
157150

158-
SimplifyRegexPatternRector::class,
159-
160151
// PHP 8.0 features but cause breaking changes
161152
ClassPropertyAssignToConstructorPromotionRector::class => [
162153
__DIR__ . '/system/Database/BaseResult.php',
@@ -221,7 +212,6 @@
221212
$rectorConfig->rule(ChangeArrayPushToArrayAssignRector::class);
222213
$rectorConfig->rule(UnnecessaryTernaryExpressionRector::class);
223214
$rectorConfig->rule(RemoveErrorSuppressInTryCatchStmtsRector::class);
224-
$rectorConfig->rule(SimplifyRegexPatternRector::class);
225215
$rectorConfig->rule(FuncGetArgsToVariadicParamRector::class);
226216
$rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class);
227217
$rectorConfig->rule(SimplifyEmptyArrayCheckRector::class);

0 commit comments

Comments
 (0)