You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Bo Andersen (JIRA)" <ji...@apache.org> on 2018/11/10 18:26:00 UTC

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

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

Bo Andersen updated NETBEANS-1656:
----------------------------------
    Description: 
 
{code:java}
Test {

 /*
  * @return model[]
  */
  public function getCollection(): array {

   return [new Model(), new Model()];

  }

}

$test = new Test();
$collection = $test->getCollection();
$collection[0]->{models methods}; // 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.

  was:
 
{code:java}
Test {

 /*
  * @return model[]
  */
  public function myCollection(): array {

   return [new Model(), new Model()];

  }

}

$test = new Test();
$collection = $test->getCollection();
$collection[0]->{models methods}; // 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.


> Typed arrays - docblock awareness
> ---------------------------------
>
>                 Key: NETBEANS-1656
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1656
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Code Analysis
>    Affects Versions: 10.0
>            Reporter: Bo Andersen
>            Priority: Minor
>
>  
> {code:java}
> Test {
>  /*
>   * @return model[]
>   */
>   public function getCollection(): array {
>    return [new Model(), new Model()];
>   }
> }
> $test = new Test();
> $collection = $test->getCollection();
> $collection[0]->{models methods}; // 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
(v7.6.3#76005)

---------------------------------------------------------------------
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