File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 6
6
use App \Contexts \Argument ;
7
7
use App \Contexts \AssignmentValue ;
8
8
use App \Contexts \MethodCall ;
9
- use Error ;
9
+ use Microsoft \ PhpParser \ Node \ Expression \ MemberAccessExpression ;
10
10
use Microsoft \PhpParser \Node \Expression \ScopedPropertyAccessExpression ;
11
11
use Microsoft \PhpParser \Node \Expression \Variable ;
12
12
@@ -41,6 +41,16 @@ protected function resolveClassName(ScopedPropertyAccessExpression $node)
41
41
return $ result ;
42
42
}
43
43
44
+ if ($ node ->scopeResolutionQualifier instanceof MemberAccessExpression) {
45
+ $ parser = new MemberAccessExpressionParser ;
46
+ $ context = new MethodCall ;
47
+ $ context ->parent = clone $ this ->context ;
48
+ $ parser ->context ($ context );
49
+ $ result = $ parser ->parseNode ($ node ->scopeResolutionQualifier );
50
+
51
+ return $ result ->className ?? null ;
52
+ }
53
+
44
54
return $ node ->scopeResolutionQualifier ->getText ();
45
55
}
46
56
You can’t perform that action at this time.
0 commit comments