Skip to content

Commit 3a971f3

Browse files
committed
Cleanup
1 parent c7d5ce9 commit 3a971f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Reflection/Deprecated/DeprecatedHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Roave\BetterReflection\Reflection\Deprecated;
66

7+
use Deprecated;
78
use Roave\BetterReflection\Reflection\Annotation\AnnotationHelper;
89
use Roave\BetterReflection\Reflection\Attribute\ReflectionAttributeHelper;
910
use Roave\BetterReflection\Reflection\ReflectionClass;
@@ -20,8 +21,7 @@ final class DeprecatedHelper
2021
/** @psalm-pure */
2122
public static function isDeprecated(ReflectionClass|ReflectionMethod|ReflectionFunction|ReflectionConstant|ReflectionClassConstant|ReflectionEnumCase|ReflectionProperty $reflection): bool
2223
{
23-
// We don't use Deprecated::class because the class is currently missing in stubs
24-
if (ReflectionAttributeHelper::filterAttributesByName($reflection->getAttributes(), 'Deprecated') !== []) {
24+
if (ReflectionAttributeHelper::filterAttributesByName($reflection->getAttributes(), Deprecated::class) !== []) {
2525
return true;
2626
}
2727

0 commit comments

Comments
 (0)