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

   ### Apache NetBeans version
   
   Apache NetBeans 16
   
   ### What happened
   
   Formatting ternary or null-coalescing operator inside method call adds extra 
space after expression and before closing parenthesis.
   
   ### How to reproduce
   
   Create file with following contents:
   ```php
   <?php
   
   var_dump($a);
   var_dump($a ? 1 : 2);
   var_dump($a ?? null);
   ```
   - Check option in formatting for PHP language Spaces > Within Parenthesis > 
Method / Function Call
   - Reformat code twice
   - There are two spaces before closing parenthesis instead of only one.
   
   Actual result:
   ```php
   <?php
   
   var_dump( $a );
   var_dump( $a ? 1 : 2  ); // <- Extra space before )
   var_dump( $a ?? null  ); // <- Extra space before )
   ```
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Ubuntu 22.10
   
   ### JDK
   
   OpenJDK 17.0.5
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   Yes
   
   ### 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: [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