diff --git a/rector.php b/rector.php index ca1b4cf84d85..4ac9e5e51f83 100644 --- a/rector.php +++ b/rector.php @@ -33,6 +33,7 @@ use Rector\Config\RectorConfig; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedConstructorParamRector; use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPrivateMethodRector; +use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPromotedPropertyRector; use Rector\DeadCode\Rector\If_\UnwrapFutureCompatibleIfPhpVersionRector; use Rector\EarlyReturn\Rector\Foreach_\ChangeNestedForeachIfsToEarlyContinueRector; use Rector\EarlyReturn\Rector\If_\ChangeIfElseValueAssignToEarlyReturnRector; @@ -95,6 +96,11 @@ JsonThrowOnErrorRector::class, YieldDataProviderRector::class, + RemoveUnusedPromotedPropertyRector::class => [ + // Bug in rector 1.0.0. See https://github.com/rectorphp/rector-src/pull/5573 + __DIR__ . '/tests/_support/Entity/CustomUser.php', + ], + RemoveUnusedPrivateMethodRector::class => [ // private method called via getPrivateMethodInvoker __DIR__ . '/tests/system/Test/ReflectionHelperTest.php',