From 845683830a264e0d59a423d5d2adf5bf707413b9 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 16 Nov 2026 17:58:50 +0100 Subject: [PATCH] [DeadCode] Remove 2 deprecated rules --- .../ClassLike/RemoveAnnotationRector.php | 73 ------------------- ...moveTypedPropertyNonMockDocblockRector.php | 65 ----------------- 2 files changed, 138 deletions(-) delete mode 100644 rules/DeadCode/Rector/ClassLike/RemoveAnnotationRector.php delete mode 100644 rules/DeadCode/Rector/ClassLike/RemoveTypedPropertyNonMockDocblockRector.php diff --git a/rules/DeadCode/Rector/ClassLike/RemoveAnnotationRector.php b/rules/DeadCode/Rector/ClassLike/RemoveAnnotationRector.php deleted file mode 100644 index 78003d02332..00000000000 --- a/rules/DeadCode/Rector/ClassLike/RemoveAnnotationRector.php +++ /dev/null @@ -1,73 +0,0 @@ -> - */ - public function getNodeTypes(): array - { - return [ClassLike::class, FunctionLike::class, Property::class, ClassConst::class]; - } - - /** - * @param ClassLike|FunctionLike|Property|ClassConst $node - */ - public function refactor(Node $node): ?Node - { - throw new ShouldNotHappenException(sprintf( - '"%s" rule is deprecated, as removing an annotation by name is a coding standard concern, not an upgrade path; use a coding standard tool instead', - self::class - )); - } - - /** - * @param mixed[] $configuration - */ - public function configure(array $configuration): void - { - } -} diff --git a/rules/DeadCode/Rector/ClassLike/RemoveTypedPropertyNonMockDocblockRector.php b/rules/DeadCode/Rector/ClassLike/RemoveTypedPropertyNonMockDocblockRector.php deleted file mode 100644 index 1ea7455ea14..00000000000 --- a/rules/DeadCode/Rector/ClassLike/RemoveTypedPropertyNonMockDocblockRector.php +++ /dev/null @@ -1,65 +0,0 @@ -