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.

Bug 156614

Summary: variable type in comment and @property of subclass
Product: php Reporter: gawan <gawan>
Component: EditorAssignee: rmatous <rmatous>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description gawan 2009-01-12 13:51:46 UTC
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"?
Comment 1 Petr Pisl 2009-01-13 00:27:30 UTC
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
Comment 2 rmatous 2009-03-13 19:39:53 UTC
/* @var $user User */ vardoc implemented && tested in goto declaration and mark occurences, CC impl. is just a simple
fake - not done yet
 
Comment 3 rmatous 2009-05-14 16:53:23 UTC
duplicate of #159970

*** This issue has been marked as a duplicate of 159970 ***