Eugene-Melbourne opened a new issue, #7411:
URL: https://github.com/apache/netbeans/issues/7411

   ### Apache NetBeans version
   
   Apache NetBeans 21
   
   ### What happened
   
   `/** @var Collection<int,bool> $collection */`
   This form of typehint is new way for countables in PHP
   I understand it may be too difficult to look inside of these "<"">" and 
analyze it, 
   but can you please make typehinting to ignore only the contents of it, 
instead of ignoring all the whole typehinting comment?
   
   ### Language / Project Type / NetBeans Component
   
   PHP project
   
   ### How to reproduce
   
   ```
   <?php
   use ArrayAccess;
   class Collection implements ArrayAccess
   {}
   
   /** @var Collection $a*/
   /** @var Collection<int,int> $b*/
   
   $b->
   ```
   
   Use this code in a file and press `<strl>+<space>` after `->`
   
   you will see no suggestions related to `Collection` class, however, if you 
replace
   `$b->` with `$a->` you get a few suggestions related to `ArrayAccess` 
interface.
   
   I believe the same suggestions should be provided in both cases "$b->" and 
"$a->".
   
   I mean you can ignore everything within `<...>` but still use the rest from 
`/** @var ... $b*/`
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10 version 10.0 running on amd64; UTF-8; en_AU (nb)
   
   ### JDK
   
   19.0.2; Java HotSpot(TM) 64-Bit Server VM 19.0.2+7-44
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to