Skip to content

Commit

Permalink
Don't require class doc block
Browse files Browse the repository at this point in the history
The doc block is no longer required. But if it exists ensure it's formatted properly
  • Loading branch information
chadicus committed Jun 22, 2018
1 parent 7d6ceeb commit 9e59cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chadicus/Sniffs/Commenting/ClassCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
if ($tokens[$commentEnd]['code'] !== T_DOC_COMMENT_CLOSE_TAG
&& $tokens[$commentEnd]['code'] !== T_COMMENT
) {
$phpcsFile->addError('Missing class doc comment', $stackPtr, 'Missing');
//Don't require the class doc block.
return;
}

Expand Down

0 comments on commit 9e59cea

Please sign in to comment.