Closed
Description
Squiz.Commenting.FunctionCommentSniff
does not seem to support intersection types.
/**
* @param (TranslatorInterface&LocaleAwareInterface)|null $translator Translator for translating messages.
*/
public function setTranslator(?TranslatorInterface $translator): void
{
$this->translator = $translator;
}
Incorrectly generates the following errors:
4 | ERROR | Doc comment for parameter &LocaleAwareInterface)|null does not match actual variable name
| | $translator (Squiz.Commenting.FunctionComment.ParamNameNoMatch)
4 | ERROR | Parameter comment must start with a capital letter
| | (Squiz.Commenting.FunctionComment.ParamCommentNotCapital)