Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
10.0, 11.0
-
None
-
None
Description
class Model { public function doStuff(): void { ... } } class Test { /* * @return Model[] */ public function getCollection(): array { return [new Model(), new Model()]; } } $test = new Test(); $collection = $test->getCollection(); $collection[0]->(?); // At the moment Netbeans is not aware of the type
Netbeans should be aware of the types within a collection if they are typehinted.
Attachments
Issue Links
- duplicates
-
NETBEANS-4509 PHP - code completion for function returning array
- Closed