format/types/declaration-spacing
In the format-laravel preset. Safe fix.
What it does
Ensure single space between a variable and its type declaration in function arguments and properties.
Configuration
[format.rules]
"types/declaration-spacing" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
elements |
list |
constant, function, property |
["function", "property"] |
elements |
Replaces
type_declaration_spaces(php-cs-fixer)