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

lint/style/add-property-type-from-phpdoc

Not in any set. Unsafe fix: it can change behaviour.

What it does

Takes @var annotation of non-mixed types and adjusts accordingly the property signature..

Configuration

[lint.rules]
"style/add-property-type-from-phpdoc" = "error"

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

Options

Name Type Allowed values Default Upstream name
scalar-types bool Any true scalar_types
types-map map Any { } types_map
union-types bool Any true union_types

Replaces

More lint/style rules · Edit this page

Last updated on

Was this page helpful?