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.
Try this: <? /** * @property string $title * @property string $body */ class Blog {} /** * @property string $name of user * @property Blog $blog */ class User {} /* @var $user User */ $user->blog-> ?> and after CTRL + SPACE netbeans offers me property of User not of Blog. Little enhancement: Could you add text after @property into PHPDoc popup window (e.g. for property $name -> "$name of user"?
I think there are two separate issues. The first is a bug, when NB offers wrong items in code completion. It should be fixed. Ant the second one is enhancement. Probably we should allow customize the templates, which are used for generating PHPDoc
/* @var $user User */ vardoc implemented && tested in goto declaration and mark occurences, CC impl. is just a simple fake - not done yet
duplicate of #159970 *** This issue has been marked as a duplicate of 159970 ***