mvorisek opened a new issue, #7348:
URL: https://github.com/apache/netbeans/issues/7348

   ### Apache NetBeans version
   
   Apache NetBeans 21
   
   ### What happened
   
   
![image](https://github.com/apache/netbeans/assets/2228672/5b282a5c-8327-48b4-909b-5ea2003e12cc)
   
   Notice the `$fx();` line is not highlighted when other `$fx` variable usages 
are.
   
   It seems it is otherwise supported, but the `$otherFx = function () {};` 
line is breaking it.
   
   As a consequence of this bug, `$fx` cannot be refactored/renamed using IDE 
in one step.
   
   ### Language / Project Type / NetBeans Component
   
   _No response_
   
   ### How to reproduce
   
   ```
   <?php
   
   function test() {
       $fx = function () {};
   
       $callFx = function () use ($fx) {
           $otherFx = function () {};
           $fx();
           $otherFx();
       };
   }
   ```
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   any
   
   ### JDK
   
   any
   
   ### 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