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.
This works as expected & says "No suggestions: $times = array(new DateTime(), new DateTime()); $times-> While this doesn't work as expected & lists the DateTime functions: /** * @return DateTime[] */ function getTimes() { return array(new DateTime(), new DateTime()); } $times = getTimes(); $times-> same when using an @param PHPDoc tag: /** * @param DateTime[] $times */ function setTimes($times) { $times-> } All the above cases should say "No suggestions", & ideally NetBeans would also give the reason why: "No suggestions. $times is documented to be an array"
It's an intent to allow CC in such cases: foreach (getTimes() as $value) { $value-> } It could be improved, but it's a bigger task. P4 as a reminder.