Skip to content

Commit fd1c2b0

Browse files
committed
fall back to node text if we can't get resolved name
1 parent 2ef2bab commit fd1c2b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Parsers/ScopedPropertyAccessExpressionParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ScopedPropertyAccessExpressionParser extends AbstractParser
1717
public function parse(ScopedPropertyAccessExpression $node)
1818
{
1919
$this->context->methodName = $node->memberName->getFullText($node->getRoot()->getFullText());
20-
$this->context->className = (string) $node->scopeResolutionQualifier->getResolvedName();
20+
$this->context->className = (string) ($node->scopeResolutionQualifier?->getResolvedName() ?? $node->scopeResolutionQualifier?->getText());
2121

2222
return $this->context;
2323
}

0 commit comments

Comments
 (0)