I am using the following line in PHP with NetBeans 7.0 : 

`$ret = $this->stupid_function();`

I certainly know that `stupid_function` doesn't exist in this class or any derivative of this. 

`"Navigate to source/declaration"` takes me nowhere. 

But still NetBeans doesn't seem to mark the line as error.

* I tried restarting Netbeans
* I tried re-adding the project
* I tried deleting cache

Nothing seems to work...

Although, I observed that if I removed `$this` from that statement, NetBeans knows that the function doesn't exist. It seems like NetBeans doesn't understand `$this` properly.

**How to highlight code referencing nonexistent function when using PHP in NetBeans?**