czukowski opened a new issue, #6274: URL: https://github.com/apache/netbeans/issues/6274
### Apache NetBeans version Apache NetBeans 19 release candidate ### What happened "Put in PSR-12 order" option is used to make sure use groups (types, functions, constants) are in the correct order as required by the standard. However, the order is changed even if the option is disabled when using "Fix Imports". It probably shouldn't assume any order by default. Also, "Put in PSR-12 order" only seems to affect "Fix Imports" and not using "Source > Format". ### How to reproduce Disable 'Put in PSR-12 order' and use 'Fix imports' with the following code: ```php <?php use Generator; use Iterator; use ArrayIterator; use function sort; use function next; use function valid; use const SORT_NUMERIC; ``` Expected result: ```php <?php use ArrayIterator; use Generator; use Iterator; use function next; use function sort; use function valid; use const SORT_NUMERIC; ``` Actual result: ```php <?php use ArrayIterator; use Generator; use Iterator; use const SORT_NUMERIC; use function next; use function sort; use function valid; ``` ### Did this work correctly in an earlier version? No / Don't know ### Operating System Windows 10 ### JDK 18.0.2.1; OpenJDK 64-Bit Server VM 18.0.2.1+1-1 ### Apache NetBeans packaging Apache NetBeans binary zip ### Anything else Low priority issue. ### 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
