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.
The code completion doesn't offer $this in the classes. Simple example: class User { private $name; function User ($name) { $this->name = $name; } function getName() { return $this->name; } }
CC currently doesn't recognize class declaration context (issue 122056). The trivial fix would be to offer the $this variable anywhere, but it doesn't seem to br a very good idea...
Reassigning to Vita who volunteered to take care of this issue. Note that this issue is not just about the keyword but also the fields and methods of currently edited class
http://hg.netbeans.org/release61-php/rev/b30a7b5f4d2d http://hg.netbeans.org/release61-php/rev/c0003cb538b4