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

format/statements/declare-equal

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

What it does

Equal sign in declare statement should be surrounded by spaces or not following configuration.

Configuration

[format.rules]
"statements/declare-equal" = true

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

Options

Name Type Allowed values Default Upstream name
space enum single, none "none" space

Replaces

More format/statements rules · Edit this page

Last updated on

Was this page helpful?