Closed Jeroeny closed 2 years ago
Thanks!
What is the $psrSort
for?
What is the
$psrSort
for?
It fixes the namespace sort:
before
namespace Example;
use Example\Foo\EmailAlias\Bar;
use Example\Foo\Email\Test;
use Example\Foo\MyClass;
use Example\Foo\Other;
after
namespace Example;
use Example\Foo\Email\Test;
use Example\Foo\EmailAlias\Bar;
use Example\Foo\MyClass;
use Example\Foo\Other;
Maybe it can be supported but not by default enabled in any printer?
@Jeroeny okay, I'm gonna use that as the default sort.
PsrPrinter
The PSR standard(s) seem to indicate that they use a newline between use statements of different types (class, function and const). It would be nice if this could be supported