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.
NetBeans IDE currently does not display code hints for items in an array. Arrays containing a certain class type are very often used in PHP, and it will be very useful if code hints can be made available for them. I am looking for the following behavior: [code] class contact { /** * @var string $name Name of the Person. */ var $name; /** * @var string $email Primary Email of the contact. */ var $email; } /** * @param array<contact> $contacts Array of contact objects. or @param contact[] $contacts Array of contact objects. */ function addContacts($contacts) { foreach($contacts as $ct) { $ct->| <...Code Hint Here> } } [/code] Thanks, Mrugendra Bhure.
It will be good to add support code completion for variables that defined as "array of objects" in DocBlock written using that specs: http://www.icosaedro.it/phplint/phpdoc.html#types I mean the next syntax: /* * * @param array[]SomeClass $paramName1 array of objects of the class SomeClass, the keys can be both integer numbers and strings (avoid) * * @param array[int]SomeClass $paramName2 array of objects of the class SomeClass, the keys are integer numbers *
It would be awesome!
batch reassigning
*** Bug 194155 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 207589 ***