format/comments/single-line-style
In the format-laravel preset. Safe fix.
What it does
Single-line comments and multi-line comments with only one line of actual content should use the // syntax.
Configuration
[format.rules]
"comments/single-line-style" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
comment-types |
list |
asterisk, hash |
["asterisk", "hash"] |
comment_types |
Replaces
single_line_comment_style(php-cs-fixer)no-hash-comment(mago-linter)