moodle-cs
moodle-cs copied to clipboard
@var Sniff should detect presence of $varname
Incorrect:
/** @var string $example An example string */
protected $example;
Correct:
/** @var string An example string */
protected $example;
The name of the var is inferred from the var itself. No need to specify it.