File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 44
55use App \Contexts \AbstractContext ;
66use App \Contexts \Argument ;
7+ use App \Contexts \ArrayItem ;
78use App \Contexts \AssignmentValue ;
89use App \Contexts \MethodCall ;
910use Microsoft \PhpParser \Node \Expression \MemberAccessExpression ;
@@ -22,6 +23,10 @@ public function parse(ScopedPropertyAccessExpression $node)
2223 $ this ->context ->methodName = $ node ->memberName ->getFullText ($ node ->getRoot ()->getFullText ());
2324 $ this ->context ->className = $ this ->resolveClassName ($ node );
2425
26+ if ($ this ->context ->methodName === 'class ' ) {
27+ $ this ->context ->methodName = null ;
28+ }
29+
2530 return $ this ->context ;
2631 }
2732
@@ -59,6 +64,7 @@ public function initNewContext(): ?AbstractContext
5964 if (
6065 $ this ->context instanceof Argument
6166 || $ this ->context instanceof AssignmentValue
67+ || $ this ->context instanceof ArrayItem
6268 ) {
6369 return new MethodCall ;
6470 }
You can’t perform that action at this time.
0 commit comments