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

format/phpdoc/types

In the format-laravel preset. Safe fix.

What it does

The correct case must be used for standard PHP types in PHPDoc.

Configuration

[format.rules]
"phpdoc/types" = true

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

Options

Name Type Allowed values Default Upstream name
exclude list $this, array, bool, boolean, callable, double, false, float, int, integer, iterable, mixed, null, object, parent, resource, scalar, self, static, string, true, void [] exclude
groups list alias, meta, simple ["alias", "meta", "simple"] groups

Replaces

More format/phpdoc rules · Edit this page

Last updated on

Was this page helpful?