From 224fab39bc3adedbe50f1568638a387b924cb476 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 17 Nov 2026 16:53:28 +0100 Subject: [PATCH] [Naming] Remove deprecated RenamePropertyToMatchTypeRector --- .../RenamePropertyToMatchTypeRector.php | 78 ------------------- 1 file changed, 78 deletions(-) delete mode 100644 rules/Naming/Rector/Class_/RenamePropertyToMatchTypeRector.php 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 - )); - } -}