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

   ### Apache NetBeans version
   
   Apache NetBeans 30
   
   ### What happened
   
   When renaming a parameter of a function with Refactor->Rename… NetBeans 
fails to rename the variable in the PHPDoc  block
   
   ### Language / Project Type / NetBeans Component
   
   PHP
   
   ### How to reproduce
   
   Have some file
   
   ```php
   class Test
   {
       /**
        * @param string ...$param
        */
       public function test(string ...$param): void
       {
       }
   }
   ```
   
   - Right-click on ``$param`` in methods parameter list
   - select Refactor->Rename…
   - type in "New Name", e.g. "renamed"
   - Press: "Preview"
   - Press: "Do Refactoring"
   
   Result:
   
   ```php
   class Test
   {
       /**
        * @param string ...$param
        */
       public function test(string ...$renamed): void
       {
       }
   }
   ```
   
   Expected result:
   
   ```php
   class Test
   {
       /**
        * @param string ...$renamed
        */
       public function test(string ...$renamed): void
       {
       }
   }
   ```
   
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows
   
   ### JDK
   
   Java: 25.0.2; OpenJDK 64-Bit Server VM 25.0.2+10-69
   
   ### Apache NetBeans packaging
   
   Community 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