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 - variable type in comment and @property of subclass
Summary: variable type in comment and @property of subclass
Status: RESOLVED DUPLICATE of bug 159970
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-12 13:51 UTC by gawan
Modified: 2009-05-14 16:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***