format/attributes/empty-parentheses
Not in any preset. Safe fix.
What it does
PHP attributes declared without arguments must (not) be followed by empty parentheses.
Configuration
[format.rules]
"attributes/empty-parentheses" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
use-parentheses |
bool |
Any | false |
use_parentheses |
Replaces
attribute_empty_parentheses(php-cs-fixer)