Skip to content

Commit 4e23332

Browse files
Merge pull request #4 from laravel/call-to-undefined-get-resolved-name
Resolved name -> fallback to node text
2 parents 11b40d9 + fd1c2b0 commit 4e23332

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)