Skip to content

Feature/group imports by namespace root#145

Open
RobGordijn wants to merge 6 commits into
MehediDracula:masterfrom
RobGordijn:feature/group-imports-by-namespace-root
Open

Feature/group imports by namespace root#145
RobGordijn wants to merge 6 commits into
MehediDracula:masterfrom
RobGordijn:feature/group-imports-by-namespace-root

Conversation

@RobGordijn

@RobGordijn RobGordijn commented Apr 9, 2026

Copy link
Copy Markdown

The basic idea is to add a newline between the groups of imports with the setting

"phpNamespaceResolver.sortSeparateNamespaceGroups": true

Before

use Foo\Bar;
use App\User;
use Foo\Bar\Whop;

After sorting + sortSeparateNamespaceGroups enabled

use App\User;

use Foo\Bar;
use Foo\Bar\Whop;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant