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

Multi import statements allowed? #85

Open
Tracked by #97
gharlan opened this issue Mar 11, 2024 · 0 comments
Open
Tracked by #97

Multi import statements allowed? #85

gharlan opened this issue Mar 11, 2024 · 0 comments

Comments

@gharlan
Copy link

gharlan commented Mar 11, 2024

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.

@Crell Crell mentioned this issue Sep 3, 2024
9 tasks
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