You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "rarila (via GitHub)" <gi...@apache.org> on 2026/06/11 13:35:04 UTC

[I] [PHP] Refactor/Rename fails for PHPDoc @param on variadics [netbeans]

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


Re: [I] [PHP] Refactor/Rename fails for PHPDoc @param on variadics [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #9437:
URL: https://github.com/apache/netbeans/issues/9437#issuecomment-4948247397

   @rarila thanks for taking the time to test!


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


Re: [I] [PHP] Refactor/Rename fails for PHPDoc @param on variadics [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing commented on issue #9437:
URL: https://github.com/apache/netbeans/issues/9437#issuecomment-4895677946

   @rarila please have a look at https://github.com/apache/netbeans/pull/9487. That should fix the issue. A nightly build can be downloaded from the checks page or directly: https://github.com/apache/netbeans/suites/77703178779/artifacts/8095045915


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


Re: [I] [PHP] Refactor/Rename fails for PHPDoc @param on variadics [netbeans]

Posted by "matthiasblaesing (via GitHub)" <gi...@apache.org>.
matthiasblaesing closed issue #9437: [PHP] Refactor/Rename fails for PHPDoc @param on variadics
URL: https://github.com/apache/netbeans/issues/9437


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


Re: [I] [PHP] Refactor/Rename fails for PHPDoc @param on variadics [netbeans]

Posted by "rarila (via GitHub)" <gi...@apache.org>.
rarila commented on issue #9437:
URL: https://github.com/apache/netbeans/issues/9437#issuecomment-4939711833

   @matthiasblaesing 
   
   Finally, I managed to test it. Works great!
   
   Thank you, very much!


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