This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This should be very simple to implement and despite it may seem obvious that there is no this when in static context, when you are working some hours, you find that in the code eventually and you hit yourself in a wall (Didn't it happened to anyone?) So I propose, to have hints for that, or even detect it as a "syntax error" with that red underline to make it clear that you are committing a mistake that would not work. Something like: ... public static function foo() { $this->something=34; ^^^^^ (red underline) and a hint when you pass mouse cursor over to something like: Cannot use this when not in object instance context.
I am not sure if this is applicable to all other modules (C++, Java), but maybe this "issue" affects other modules also.
Reproductible in 8.2rc / Dev 201609210002