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.
In editor, for PHP file. In a foreach loop, if the value is passed through reference with '&', the completion is not able to find the class of the object. Example: class Data { public $property='prop'; } $tab = array(new Data(), new Data(), new Data()); foreach ($tab as $data) { // direct access to $data->property in auto-completion } foreach ($tab as &$data) { // unable to find the class of $data and to propose Data property }
I add that in foreach loops, the value class can be found only if a comment give the information: /* @var $tab Data[] */ but this not works when '&' is added to the value.