Skip to content

Commit 4d9ae00

Browse files
[8.4][DeprecatedAnnotationToDeprecatedAttributeRector] Remove invalid example (#7202)
Classes are not affected by the rule and are not supported by the `#[\Deprecated]` attribute
1 parent 295bf3e commit 4d9ae00

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

rules/Php84/Rector/Class_/DeprecatedAnnotationToDeprecatedAttributeRector.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,6 @@ public function getRuleDefinition(): RuleDefinition
3030
return new RuleDefinition('Change @deprecated annotation to Deprecated attribute', [
3131
new CodeSample(
3232
<<<'CODE_SAMPLE'
33-
/**
34-
* @deprecated 1.0.0 Use SomeOtherClass instead
35-
*/
36-
class SomeClass
37-
{
38-
}
39-
CODE_SAMPLE
40-
,
41-
<<<'CODE_SAMPLE'
42-
#[\Deprecated(message: 'Use SomeOtherClass instead', since: '1.0.0')]
43-
class SomeClass
44-
{
45-
}
46-
CODE_SAMPLE
47-
),
48-
new CodeSample(
49-
<<<'CODE_SAMPLE'
5033
/**
5134
* @deprecated 1.0.0 Use SomeOtherFunction instead
5235
*/

0 commit comments

Comments
 (0)