junichi11 opened a new pull request, #6322:
URL: https://github.com/apache/netbeans/pull/6322

   - https://github.com/apache/netbeans/issues/6274
   - Add the option (Keep existing order of use types(types, functions, 
constants) if possible)
   - Add unit tests
   
   
![nb-php-gh-6274-options](https://github.com/apache/netbeans/assets/738383/2e3c0485-4eff-4297-974d-506d22b0b76b)
   
   e.g. Add `use Vendor\Package\Type2;` to the following code
   ```php
   <?php
   
   use Vendor\Package\Type;
   use function Vendor\Package\fnc;
   use const Vendor\Package\CONSTANT;
   
   ```
   
   Before:
   ```php
   <?php
   
   use Vendor\Package\Type;
   use Vendor\Package\Type2;
   use const Vendor\Package\CONSTANT;
   use function Vendor\Package\fnc;
   
   ```
   
   After:
   ```php
   <?php
   
   use Vendor\Package\Type;
   use Vendor\Package\Type2;
   use function Vendor\Package\fnc;
   use const Vendor\Package\CONSTANT;
   
   ```
   
   
   ### NOTE:
   If existing "uses" don't have a type kind for adding, the default order is 
used.
   
   e.g. in the following case, the default order is used when `use const 
Vendor\Package\CONSTANT;` is added
   ```php
   
   use Vendor\Package\Type;
   
   ```
   
   ```php
   
   use Vendor\Package\Type;
   use const Vendor\Package\CONSTANT;
   
   ```


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