format/phpdoc/scalar
In the format-laravel preset. Safe fix.
What it does
Scalar types should always be written in the same form. int not integer, bool not boolean, float not real or double.
Configuration
[format.rules]
"phpdoc/scalar" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
types |
list |
boolean, callback, double, integer, never-return, never-returns, no-return, real, str |
["boolean", "callback", "double", "integer", "real", "str"] |
types |
Replaces
phpdoc_scalar(php-cs-fixer)