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

   ### Apache NetBeans version
   
   Apache NetBeans 20
   
   ### What happened
   
   Get incorrect result we format the below example:
   
   Example:
   
   ```php
   <?php
   namespace {
       use Vendor\Class1;
       $test = 1;
   }
   ```
   
   Result:
   
   ```php
   <?php
   
   namespace {
   
       use Vendor\Class1;
   
   $test = 1;
   }
   ```
   
   ### Language / Project Type / NetBeans Component
   
   PHP editor
   
   ### How to reproduce
   
   ### Steps to reproduce it:
   
   1. Create a new file
   2. Copy & Paste the below example to the new file
   3. Source > Format
   
   ### Options: 
   
   default
   
   ### Example:
   
   ```php
   <?php
   namespace {
       use Vendor\Class1;
       $test = 1;
   }
   ```
   
   ### Expected result:
   
   ```php
   <?php
   
   namespace {
   
       use Vendor\Class1;
   
       $test = 1;
   }
   ```
   
   ### Actual result:
   
   ```php
   <?php
   
   namespace {
   
       use Vendor\Class1;
   
   $test = 1;
   }
   ```
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Ubuntu 22.04
   
   ### JDK
   
   JDK 19
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   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