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

   ### Apache NetBeans version
   
   Apache NetBeans latest daily build
   
   ### What happened
   
   PHP formatting options 'Put in PSR-12 order' and 'Between Use Types' 
settings seem to conflict with each other in **NB19-r1**.
   
   'Put in PSR-12 order' should only maintain the correct order and leave it up 
to 'Between Use Types' to fix blank lines. 
   
   If PSR compliance is desired, users may enable 'Put in PSR-12 order' and set 
'Between Use Types' to 1.
   
   ### How to reproduce
   
   Enable 'Put in PSR-12 order' and set 'Between Use Types' to zero. Then use 
"Fix imports", it will add empty lines between use types. Then use Source > 
Format, it will remove them right away.
   
   ```php
   <?php
   use Generator;
   use function sort;
   use const SORT_NUMERIC;
   ```
   
   ### 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
   
   Also, 'Put in PSR-12 order', being a new option, _probably_ should not be 
enabled automatically in project custom formatting settings, if they are 
enabled, because it then leads to unexpected behavior.
   
   ### 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