Skip to content

Commit c1029e7

Browse files
committed
fallback to node text for class name
1 parent eeaf646 commit c1029e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Parsers/MemberAccessExpressionParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function parse(MemberAccessExpression $node)
2222

2323
foreach ($node->getDescendantNodes() as $child) {
2424
if ($child instanceof QualifiedName) {
25-
$this->context->className ??= (string) $child->getResolvedName();
25+
$this->context->className ??= (string) ($child->getResolvedName() ?? $child->getText());
2626

2727
return $this->context;
2828
}

0 commit comments

Comments
 (0)