Skip to content

Commit 453631a

Browse files
committed
Update BetterReflectionProvider.php
1 parent 842dbd2 commit 453631a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Reflection/BetterReflection/BetterReflectionProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@ public function getConstant(Node\Name $nameNode, ?NamespaceAnswerer $namespaceAn
418418
// https://github.com/JetBrains/phpstorm-stubs/blob/9608c953230b08f07b703ecfe459cc58d5421437/filter/filter.php#L478
419419
$deprecatedDescription = $deprecatedMessage;
420420
}
421+
} elseif (!$isDeprecated) {
422+
$isDeprecated = $constantReflection->isDeprecated();
421423
}
422424
} elseif (!$isDeprecated) {
423425
$isDeprecated = $constantReflection->isDeprecated();

0 commit comments

Comments
 (0)