format/imports/group
Not in any preset. Safe fix.
What it does
There MUST be group use for the same namespaces.
Configuration
[format.rules]
"imports/group" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
group-types |
list |
classy, functions, constants |
["classy", "functions", "constants"] |
group_types |
Replaces
group_import(php-cs-fixer)
Linked rules
- Conflicts with
format/imports/single-per-statement. You cannot enable both.