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

format/operators/no-space-around-double-colon

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

What it does

There must be no space around double colons (also called Scope Resolution Operator or Paamayim Nekudotayim).

Configuration

[format.rules]
"operators/no-space-around-double-colon" = true

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

Replaces

More format/operators rules · Edit this page

Last updated on

Was this page helpful?