format/casing/constants
In the format-laravel and format-psr12 presets. Safe fix.
What it does
The PHP constants true, false, and null MUST be written using the correct casing.
Configuration
[format.rules]
"casing/constants" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
case |
enum |
upper, lower |
"lower" |
case |
Replaces
constant_case(php-cs-fixer)