Skip to content

Commit 960c71a

Browse files
committed
getValue() is deprecated
1 parent 1520ea9 commit 960c71a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Keywords/RequireFileExistsRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function resolveClassConstant(ClassConstFetch $node): ?string
103103
$classReflection = $this->reflectionProvider->getClass($className);
104104
if ($classReflection->hasConstant($constantName)) {
105105
$constantReflection = $classReflection->getConstant($constantName);
106-
$constantValue = $constantReflection->getValue();
106+
$constantValue = $constantReflection->getValueExpr();
107107
if (is_string($constantValue)) {
108108
return $constantValue;
109109
}

0 commit comments

Comments
 (0)