diff --git a/rules/Renaming/Contract/RenameAnnotationInterface.php b/rules/Renaming/Contract/RenameAnnotationInterface.php deleted file mode 100644 index 14d8800e8e0..00000000000 --- a/rules/Renaming/Contract/RenameAnnotationInterface.php +++ /dev/null @@ -1,15 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return [Class_::class, Expression::class]; - } - - /** - * @param Class_|Expression $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as too niche and part of no set; write a custom rule for the exact project case instead', - self::class - )); - } - - /** - * @param mixed[] $configuration - */ - public function configure(array $configuration): void - { - } -} diff --git a/rules/Renaming/ValueObject/RenameAnnotation.php b/rules/Renaming/ValueObject/RenameAnnotation.php deleted file mode 100644 index 5fbee4ada93..00000000000 --- a/rules/Renaming/ValueObject/RenameAnnotation.php +++ /dev/null @@ -1,29 +0,0 @@ -oldAnnotation; - } - - public function getNewAnnotation(): string - { - return $this->newAnnotation; - } -} diff --git a/rules/Renaming/ValueObject/RenameAnnotationByType.php b/rules/Renaming/ValueObject/RenameAnnotationByType.php deleted file mode 100644 index 5832e73d5ee..00000000000 --- a/rules/Renaming/ValueObject/RenameAnnotationByType.php +++ /dev/null @@ -1,38 +0,0 @@ -type); - } - - public function getOldAnnotation(): string - { - return $this->oldAnnotation; - } - - public function getNewAnnotation(): string - { - return $this->newAnnotation; - } -}