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

   ### Apache NetBeans version
   
   Apache NetBeans 20 release candidate
   
   ### What happened
   
   NetBeans formats multiline function arguments incorrectly:
   ```php
   <?php
   
   class F
   {
        public array $x = [];
        public array $y = [];
   
        public function a()
        {
                return array_merge(
                        $this->x,
      $this->y,
                );
        }
   
        public function b()
        {
                return array_merge(
                        $this->nonExistant($anyArgument),
                                          $this->y,
                );
        }
   }
   
   array_merge(
        $x,
    $y,
   );
   
   ```
   
   ### How to reproduce
   
   Use the code attached above and use Source->Format (`alt+shift+f`)
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 11
   
   ### JDK
   
   21.0.1
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   I use tabs for indent.
   Turning off Formatting -> Alignment -> Multiline Alignment -> Method Call 
Arguments resolves the issue.
   
   
![image](https://github.com/apache/netbeans/assets/19204073/e11fe2d1-c290-4389-9529-55b2a10e7568)
   
   It doesn't work in NetBeans 18 as well, so it's not caused by any recent 
changes.
   
   ### 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