lint/types/add-var-phpdoc-from-default
In the lint-strict preset. In Rector’s rector/type-declaration-docblocks set. Unsafe fix: it can change behavior.
What it does
Add @var array docblock to array property based on iterable default value
Configuration
[lint.rules]
"types/add-var-phpdoc-from-default" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
DocblockVarArrayFromPropertyDefaults(rector)