format/arrays/syntax
In the format-laravel preset. Safe fix.
What it does
PHP arrays should be declared using the configured syntax.
Configuration
[format.rules]
"arrays/syntax" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
syntax |
enum |
long, short |
"short" |
syntax |
Replaces
array_syntax(php-cs-fixer)array-style(mago-linter)