Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

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

More format/phpdoc rules · Edit this page

Last updated on

Was this page helpful?