function RequireOneLinePropertyDocCommentSniff::addError
Overrides AbstractRequireOneLineDocComment::addError
File
-
vendor/
slevomat/ coding-standard/ SlevomatCodingStandard/ Sniffs/ Commenting/ RequireOneLinePropertyDocCommentSniff.php, line 47
Class
Namespace
SlevomatCodingStandard\Sniffs\CommentingCode
protected function addError(File $phpcsFile, int $docCommentStartPointer) : bool {
$error = 'Found multi-line comment for property %s with single line content, use one-line comment instead.';
/** @var int $propertyPointer */
$propertyPointer = $phpcsFile->findNext(T_VARIABLE, $docCommentStartPointer);
return $phpcsFile->addFixableError(sprintf($error, PropertyHelper::getFullyQualifiedName($phpcsFile, $propertyPointer)), $docCommentStartPointer, self::CODE_MULTI_LINE_PROPERTY_COMMENT);
}