[ 
https://issues.apache.org/jira/browse/NETBEANS-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16872579#comment-16872579
 ] 

Bo Andersen commented on NETBEANS-1656:
---------------------------------------

{{Another example if you want to get the error messages:}}

 
{code:java}
$errors = libxml_get_errors();

foreach ($errors as $libxml_error) {
   $error_messages[] = $libxml_error->(?); // Netbeans is not aware of the 
type...
}{code}
 

> 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, 11.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]->(?); // 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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to