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

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

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

   Currently, NB ignores return types of PHPDoc if original return types exist.
   
   As work around:
   Using `@var`
   ```php
   /** @var CollectionItem $item */
   foreach ($example->getCollection() as $item) {
       $item-> // put your cursor here and press Ctrl + Space
   }
   
   ```


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