lint/dead-code/no-useless-phpdoc-type
In the dead-code set. Safe fix.
What it does
Remove PHPDoc types that add nothing over the native type (@var null, unions wider than the native return type).
Configuration
[lint.rules]
"dead-code/no-useless-phpdoc-type" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
RemoveUselessUnionReturnDocblock(rector)