format/operators/new-expression-parentheses
Not in any preset. Safe fix.
What it does
All new expressions with a further call must (not) be wrapped in parentheses.
Configuration
[format.rules]
"operators/new-expression-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
new_expression_parentheses(php-cs-fixer)NewMethodCallWithoutParentheses(rector)