Skip to content

Commit 9e59cea

Browse files
committed
Don't require class doc block
The doc block is no longer required. But if it exists ensure it's formatted properly
1 parent 7d6ceeb commit 9e59cea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chadicus/Sniffs/Commenting/ClassCommentSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
4545
if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
4646
&& $tokens[$commentEnd]['code'] !== T_COMMENT
4747
) {
48-
$phpcsFile->addError('Missing class doc comment', $stackPtr, 'Missing');
48+
//Don't require the class doc block.
4949
return;
5050
}
5151

0 commit comments

Comments
 (0)