Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ordered imports verification is incorrect #667

Open
kjdev opened this issue Nov 30, 2023 · 0 comments
Open

Ordered imports verification is incorrect #667

kjdev opened this issue Nov 30, 2023 · 0 comments

Comments

@kjdev
Copy link

kjdev commented Nov 30, 2023

Q A
Bug report? yes
Feature request? no
Library version 2.10.0

source:

use Test\Name as Alias;
use Test\Name\Aggregate;

result:

• [Style] Ordered imports: (PhpCsFixer\Fixer\Import\OrderedImportsFixer)
@@ - + @@
+use Test\Name\Aggregate;
 use Test\Name as Alias;
@@ - + @@
 use Test\Name as Alias;
-use Test\Aggregate;

Sort order verification is incorrect.

If you change it according to the instructions.

source:

use Test\Name\Aggregate;
use Test\Name as Alias;

result:

• [Style] Alphabetically sorted uses: (SlevomatCodingStandard\Sniffs\Namespaces\AlphabeticallySortedUsesSniff)
  Use statements should be sorted alphabetically. The first wrong one is Test\Name.

An error occurs due to another rule, Error due to another rule.

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

No branches or pull requests

1 participant