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

format/casing/static-reference

In the format-laravel and format-psr12 presets. Safe fix.

What it does

Class static references self, static and parent MUST be in lower case.

Configuration

[format.rules]
"casing/static-reference" = true

To skip it in some files, add a @pun-ignore-file comment.

Replaces

More format/casing rules · Edit this page

Last updated on

Was this page helpful?