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.
Netbeans 6.7M3 does not show Code Completion for objects created using new self. Please check the screenshot http://static.zooomr.com/images/7277438_e8881278bf_o.jpg Code: <?php class User { public $id; public $username; public $password; public static function instantiate() { $object = new self; $object-> [[ NO Code Completion ]] return $object; } } ?> Also, when you press CTRL + Left Click on self; it does not link back to the main class User
Please notice that you can work around it using "NB tag" @var - more information on our blog: http://blogs.sun.com/netbeansphp/entry/defining_variable_type_in_a http://blogs.sun.com/netbeansphp/entry/defining_a_variable_type_in
@tmysik, Yes the workaround works. it would be best if the code completion could be enhanced a bit, so rather than going through the comment style, it should work like the usual code completion. It would save some extra typing as well
confirmed, should be easy to fix
@tslota, thanks for confirming it. Should the fix be available in the daily build ?
*** Issue 170180 has been marked as a duplicate of this issue. ***
*** Issue 153692 has been marked as a duplicate of this issue. ***
*** Issue 166341 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', will be available in build *200908270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a24bb1ad5406 User: Radek Matous <rmatous@netbeans.org> Log: #163269 Code Completion for $var = new self;
Fixed