format/types/nullable-syntax
In the format-laravel preset. Safe fix.
What it does
Nullable single type declaration should be standardised using configured syntax.
Configuration
[format.rules]
"types/nullable-syntax" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
syntax |
enum |
union, question-mark |
"question-mark" |
syntax |
Replaces
nullable_type_declaration(php-cs-fixer)