mayflower / mo4-coding-standard

MO4 Coding Standard Rules for Codesniffer based on Symfony Coding Standards.
MIT License
17 stars 10 forks source link

AlphabeticalUseStatements sniff is not working well with `use function` #167

Closed mmoll closed 1 year ago

mmoll commented 3 years ago

Type of issue

Description

use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Psr7\Uri;
use function GuzzleHttp\Psr7\build_query;
use some\other\stuff

MO4.Formatting.AlphabeticalUseStatements.MustBeSortedAlphabetically and PSR12.Files.FileHeader.IncorrectGrouping are conflicting here.

xalopp commented 1 year ago

@mmoll could you provide what you believe to be the correct order for the example above?

mmoll commented 1 year ago

the original problem is no problem anymore.