format/phpdoc/return-self-reference
Not in any preset. Safe fix.
What it does
The type of @return annotations of methods returning a reference to itself must the configured one.
Configuration
[format.rules]
"phpdoc/return-self-reference" = true
To skip it in some files, add a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
replacements |
map |
Any | { "this" = "$this", "@this" = "$this", "$self" = "self", "@self" = "self", "$static" = "static", "@static" = "static" } |
replacements |
Replaces
phpdoc_return_self_reference(php-cs-fixer)