Description of the bug
PHPCS and Rector are in disagreement about variable comments in classes.
In Rector, the rule is RemoveUselessVarTagRector
In PHPCS, the rule is Squiz.Commenting.VariableComment.MissingVar
We should skip Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector::class in rector to satisfy PHPCS and ensure maximum tooling compatibility.
Steps To Reproduce
- Create a new plugin with
create-wordpress-plugin
- Create a class with a variable, e.g.
/**
* REST_API instance.
*
* @var REST_API
*/
private REST_API $api;
- Notice that the presence of
@var REST_API breaks Rector, and removing @var REST_API breaks PHPCS
Additional Information
No response