Skip to content

Commit b6562e2

Browse files
Fixed doc block comments for class constants
1 parent 5c650ec commit b6562e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parser/GoaopParserReflection/ReflectionConst.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct(\ReflectionClass $classReflection, string $constName
4949
foreach ($classNode->stmts as $classSubNode) {
5050
if ($classSubNode instanceof ClassConst) {
5151
foreach ($classSubNode->consts as $constNode) {
52-
if ($constNode->name === $constName) {
52+
if (((string) $constNode->name) === $constName) {
5353
$this->classConstNode = $classSubNode;
5454
$this->constNode = $constNode;
5555
break 2;

0 commit comments

Comments
 (0)