You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Procházka (Jira)" <ji...@apache.org> on 2020/07/02 17:00:00 UTC

[jira] [Resolved] (NETBEANS-1656) Typed arrays - docblock awareness

     [ https://issues.apache.org/jira/browse/NETBEANS-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomáš Procházka resolved NETBEANS-1656.
---------------------------------------
      Assignee: Tomáš Procházka
    Resolution: Duplicate

> Typed arrays - docblock awareness
> ---------------------------------
>
>                 Key: NETBEANS-1656
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1656
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Editor
>    Affects Versions: 10.0, 11.0
>            Reporter: Bo Andersen
>            Assignee: Tomáš Procházka
>            Priority: Minor
>
>  
> {code:java}
> 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{code}
> Netbeans should be aware of the types within a collection if they are typehinted.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists