You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "naitsirch (via GitHub)" <gi...@apache.org> on 2023/03/16 10:59:02 UTC

[GitHub] [netbeans] naitsirch commented on issue #5663: [PHP] Wrong auto completion in foreach loop on iterators

naitsirch commented on issue #5663:
URL: https://github.com/apache/netbeans/issues/5663#issuecomment-1471732864

   > Currently, NB ignores return types of PHPDoc if original return types exist.
   
   I do understand that and that's okay. But that wasn't my main issue.
   
   The foreach loop uses `$example->getCollection()`. NB knows that its type is `Collection`. But why is it suggesting the methods of `Collection` as methods for `$item`? The latter is not of type `Collection` - in fact it is unknown for NB.
   
   I hope you understand my explanation :-)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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