format/imports/single-per-statement
In the format-laravel and format-psr12 presets. Safe fix.
What it does
There MUST be one use keyword per declaration.
Configuration
[format.rules]
"imports/single-per-statement" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
group-to-single-imports |
bool |
Any | true |
group_to_single_imports |
Replaces
single_import_per_statement(php-cs-fixer)SeparateMultiUseImports(rector)
Linked rules
- Conflicts with
format/imports/group. You cannot enable both.