lint/types/add-var-phpdoc-from-getter
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 property docblock from its getter @return
Configuration
[lint.rules]
"types/add-var-phpdoc-from-getter" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
DocblockVarArrayFromGetterReturn(rector)