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

format/types/nullable-syntax

In the format-laravel preset. Safe fix.

What it does

Nullable single type declaration should be standardised using configured syntax.

Configuration

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

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

Options

Name Type Allowed values Default Upstream name
syntax enum union, question-mark "question-mark" syntax

Replaces

More format/types rules · Edit this page

Last updated on

Was this page helpful?