File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use App \Contexts \AbstractContext ;
6
6
use App \Contexts \Argument ;
7
+ use App \Contexts \ArrayItem ;
7
8
use App \Contexts \AssignmentValue ;
8
9
use App \Contexts \MethodCall ;
9
10
use Microsoft \PhpParser \Node \Expression \MemberAccessExpression ;
@@ -22,6 +23,10 @@ public function parse(ScopedPropertyAccessExpression $node)
22
23
$ this ->context ->methodName = $ node ->memberName ->getFullText ($ node ->getRoot ()->getFullText ());
23
24
$ this ->context ->className = $ this ->resolveClassName ($ node );
24
25
26
+ if ($ this ->context ->methodName === 'class ' ) {
27
+ $ this ->context ->methodName = null ;
28
+ }
29
+
25
30
return $ this ->context ;
26
31
}
27
32
@@ -59,6 +64,7 @@ public function initNewContext(): ?AbstractContext
59
64
if (
60
65
$ this ->context instanceof Argument
61
66
|| $ this ->context instanceof AssignmentValue
67
+ || $ this ->context instanceof ArrayItem
62
68
) {
63
69
return new MethodCall ;
64
70
}
You can’t perform that action at this time.
0 commit comments