php-fig / per-coding-style

PER coding style
259 stars 26 forks source link

Multi import statements allowed? #85

Open gharlan opened 6 months ago

gharlan commented 6 months ago

PER Coding Style allows the use of grouped import:

use function Foo\Bar\{baz, qux};

But what about multi import statements?

use Foo\Bar, A\B\C;

use function array_key_exists, count, in_array;

In my opinion it should be allowed for root classes/functions/constants (because otherwise they could not be used in a grouped style). But it should be disallowed for namespaced elements.