We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1520ea9 commit 960c71aCopy full SHA for 960c71a
src/Rules/Keywords/RequireFileExistsRule.php
@@ -103,7 +103,7 @@ private function resolveClassConstant(ClassConstFetch $node): ?string
103
$classReflection = $this->reflectionProvider->getClass($className);
104
if ($classReflection->hasConstant($constantName)) {
105
$constantReflection = $classReflection->getConstant($constantName);
106
- $constantValue = $constantReflection->getValue();
+ $constantValue = $constantReflection->getValueExpr();
107
if (is_string($constantValue)) {
108
return $constantValue;
109
}
0 commit comments