lint/style/add-param-type-from-phpdoc
Not in any set. Unsafe fix: it can change behaviour.
What it does
Takes @param annotations of non-mixed types and adjusts accordingly the function signature.
Configuration
[lint.rules]
"style/add-param-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
phpdoc_to_param_type(php-cs-fixer, risky)