You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/12/01 00:17:48 UTC

[GitHub] [netbeans] the-liquid-metal opened a new issue, #5035: [PHP] invalid additional arguments, and argument name is not highlighted and clickable on named argument call site.

the-liquid-metal opened a new issue, #5035:
URL: https://github.com/apache/netbeans/issues/5035

   ### Apache NetBeans version
   
   Apache NetBeans 15
   
   ### What happened
   
   Named arguments is php 8.0 feature, and Netbeans 15 is able to recognize it. At the moment, Netbeans is able to determine arguments whether it is positional or named argument, so Netbeans will display error mark. Unfortunately we can still inject invalid additional argument on call site. Furthermore, Netbeans does not highlight the name nor click it in order to go to the definition.
   
   ### How to reproduce
   
   ```php
   class MyClass
   {
       public function func1(int $par1, string $par2, bool $par3)
       {
           echo $par1 .", ". $par2 .", ". $par3, "\n";
       }
   }
   
   $mc = new MyClass();
   $mc->func1(par1: 20, par2: "hai", par3: true, parx: 30); // parx is invalid argument
   
   // working highlight and clickable: try to point the cursor or click on "$mc->"  or  "->func1".
   // highlight and clickable bug: try to  point the cursor or click on "par1:",  "par2:",  "par3:",  "parx:".
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10
   
   ### JDK
   
   Java: 14.0.1; Java HotSpot(TM) 64-Bit Server VM 14.0.1+7 Runtime: Java(TM) SE Runtime Environment 14.0.1+7
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


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