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

format/casts/no-unset

In the format-laravel preset. Safe fix.

What it does

Variables must be set null instead of using (unset) casting.

Configuration

[format.rules]
"casts/no-unset" = true

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

Replaces

More format/casts rules · Edit this page

Last updated on

Was this page helpful?