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

format/tags/no-closing

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

What it does

The closing ?> tag MUST be omitted from files containing only PHP.

Configuration

[format.rules]
"tags/no-closing" = true

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

Replaces

More format/tags rules · Edit this page

Last updated on

Was this page helpful?