format/strings/heredoc-closing-marker
Not in any preset. Safe fix.
What it does
Unify heredoc or nowdoc closing marker.
Configuration
[format.rules]
"strings/heredoc-closing-marker" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
closing-marker |
string |
Any | "EOD" |
closing_marker |
explicit-heredoc-style |
bool |
Any | false |
explicit_heredoc_style |
reserved-closing-markers |
list |
Any | ["CSS", "DIFF", "HTML", "JS", "JSON", "MD", "PHP", "PYTHON", "RST", "TS", "SQL", "XML", "YAML"] |
reserved_closing_markers |
Replaces
heredoc_closing_marker(php-cs-fixer)