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

format/phpdoc/scalar

In the format-laravel preset. Safe fix.

What it does

Scalar types should always be written in the same form. int not integer, bool not boolean, float not real or double.

Configuration

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

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

Options

Name Type Allowed values Default Upstream name
types list boolean, callback, double, integer, never-return, never-returns, no-return, real, str ["boolean", "callback", "double", "integer", "real", "str"] types

Replaces

More format/phpdoc rules · Edit this page

Last updated on

Was this page helpful?