diff --git a/rules/Naming/Rector/Class_/RenamePropertyToMatchTypeRector.php b/rules/Naming/Rector/Class_/RenamePropertyToMatchTypeRector.php deleted file mode 100644 index 048f8aeb480..00000000000 --- a/rules/Naming/Rector/Class_/RenamePropertyToMatchTypeRector.php +++ /dev/null @@ -1,78 +0,0 @@ -eventManager = $eventManager; - } -} -CODE_SAMPLE - , - <<<'CODE_SAMPLE' -class SomeClass -{ - /** - * @var EntityManager - */ - private $entityManager; - - public function __construct(EntityManager $entityManager) - { - $this->entityManager = $entityManager; - } -} -CODE_SAMPLE - ), - ] - ); - } - - /** - * @return array> - */ - public function getNodeTypes(): array - { - return [Class_::class]; - } - - /** - * @param Class_ $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as it is risky and can conflict with existing names or remove custom naming with more context', - self::class - )); - } -}