File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/org/cakephp/netbeans/editor Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3434import org .netbeans .modules .php .editor .parser .astnodes .MethodDeclaration ;
3535import org .netbeans .modules .php .editor .parser .astnodes .MethodInvocation ;
3636import org .netbeans .modules .php .editor .parser .astnodes .Scalar ;
37+ import org .netbeans .modules .php .editor .parser .astnodes .Variable ;
3738import org .openide .filesystems .FileObject ;
3839
3940/**
@@ -112,7 +113,12 @@ public void visit(MethodDeclaration node) {
112113 @ Override
113114 public void visit (MethodInvocation node ) {
114115 super .visit (node );
115-
116+
117+ if (!(node .getDispatcher () instanceof Variable )
118+ || !"$this" .equals (CodeUtils .extractVariableName ((Variable ) node .getDispatcher ()))) {
119+ return ;
120+ }
121+
116122 FunctionInvocation fi = node .getMethod ();
117123 String invokedMethodName = CodeUtils .extractFunctionName (fi );
118124
You can’t perform that action at this time.
0 commit comments