format/operators/increment-style
In the format-laravel preset. Safe fix.
What it does
Pre- or post-increment and decrement operators should be used if possible.
Configuration
[format.rules]
"operators/increment-style" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
style |
enum |
pre, post |
"pre" |
style |
Replaces
increment_style(php-cs-fixer)prefer-pre-increment(mago-linter)