From a27ec783a6f351615a332aded12fa0d83ae7901b Mon Sep 17 00:00:00 2001 From: Daniel Scherzer Date: Sat, 30 Aug 2025 12:39:28 -0700 Subject: [PATCH] [8.4][DeprecatedAnnotationToDeprecatedAttributeRector] Remove invalid example Classes are not affected by the rule and are not supported by the `#[\Deprecated]` attribute --- ...tedAnnotationToDeprecatedAttributeRector.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/rules/Php84/Rector/Class_/DeprecatedAnnotationToDeprecatedAttributeRector.php b/rules/Php84/Rector/Class_/DeprecatedAnnotationToDeprecatedAttributeRector.php index 37c4e2ba4cb..fd1e87b1752 100644 --- a/rules/Php84/Rector/Class_/DeprecatedAnnotationToDeprecatedAttributeRector.php +++ b/rules/Php84/Rector/Class_/DeprecatedAnnotationToDeprecatedAttributeRector.php @@ -30,23 +30,6 @@ public function getRuleDefinition(): RuleDefinition return new RuleDefinition('Change @deprecated annotation to Deprecated attribute', [ new CodeSample( <<<'CODE_SAMPLE' -/** - * @deprecated 1.0.0 Use SomeOtherClass instead - */ -class SomeClass -{ -} -CODE_SAMPLE - , - <<<'CODE_SAMPLE' -#[\Deprecated(message: 'Use SomeOtherClass instead', since: '1.0.0')] -class SomeClass -{ -} -CODE_SAMPLE - ), - new CodeSample( - <<<'CODE_SAMPLE' /** * @deprecated 1.0.0 Use SomeOtherFunction instead */