format/comments/header
Not in any preset. Safe fix.
What it does
Add, replace or remove header comment.
Configuration
[format.rules]
"comments/header" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
comment-type |
enum |
phpdoc, comment |
"comment" |
comment_type |
header |
string |
Any | Not set | header |
location |
enum |
after-open, after-declare-strict |
"after-declare-strict" |
location |
separate |
enum |
both, top, bottom, none |
"both" |
separate |
validator |
string |
Any | Not set | validator |
Replaces
header_comment(php-cs-fixer)