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.
Have a source: <?php class Address { /** * Street of residence * @var string */ public $street; /** * City of residence * @var string */ public $city; function __construct($street, $city) { $this->street = $street; $this->city = $city; } } $foo[0] = new Address(); CC after $foo[0]-> doesn't work and the cc after $foo-> offers fields from Address object.
Confirmed. Do you think we should really offer something after $foo[0]-> though? I don't think this is a real-life use case and it is not trivial to implement.
Tomasz, the bug is based on a user comment. See http://blogs.sun.com/netbeansphp/entry/code_completion_for_a_class#comment-1223542124000 , so this is real-life usecase. The main bug is that we offer after $foo-> the properties of Address.
Suggested for 7.0 - depends on #150050
W can make simple add hoc fix but it makes little sense, I think. We should rather consider better dealing with arrays - keep information about it in model. P3 -> P2
batch reassigning
Implemented in NB 7.2.