Skip to content

Commit aa8ee69

Browse files
committed
add comment
1 parent fe532c3 commit aa8ee69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coder_sniffer/Drupal/Sniffs/Commenting/DocCommentSniff.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,10 @@ public function process(File $phpcsFile, $stackPtr)
406406
continue;
407407
}
408408

409+
// Search for the previous comment string but also allow for
410+
// PHPCS ignore comments. If we encounter ignore comments then
411+
// we need to be more lenient later by checking if $prev is an
412+
// ignore comment.
409413
$prev = $phpcsFile->findPrevious(
410414
([T_DOC_COMMENT_STRING => T_DOC_COMMENT_STRING] + Tokens::$phpcsCommentTokens),
411415
($tag - 1),

0 commit comments

Comments
 (0)