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

format/types/compact-nullable

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

What it does

Remove extra spaces in a nullable type declaration.

Configuration

[format.rules]
"types/compact-nullable" = true

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

Replaces

More format/types rules · Edit this page

Last updated on

Was this page helpful?