paramTagRemover = $paramTagRemover;
$this->phpDocInfoFactory = $phpDocInfoFactory;
}
public function getRuleDefinition() : RuleDefinition
{
return new RuleDefinition('Remove @param docblock with same type as parameter type', [new CodeSample(<<<'CODE_SAMPLE'
class SomeClass
{
/**
* @param string $a
* @param string $b description
*/
public function foo(string $a, string $b)
{
}
}
CODE_SAMPLE
, <<<'CODE_SAMPLE'
class SomeClass
{
/**
* @param string $b description
*/
public function foo(string $a, string $b)
{
}
}
CODE_SAMPLE
)]);
}
/**
* @return array