We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7018b1 commit 457f773Copy full SHA for 457f773
coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php
@@ -99,14 +99,14 @@ public function process(File $phpcsFile, $stackPtr)
99
// If there is a phpstan-ignore inline comment disregard it and continue searching backwards
100
// to find the function comment.
101
if ($tokens[$commentEnd]['code'] === T_COMMENT
102
- && preg_match('/\@xphpstan-ignore/', $tokens[$commentEnd]['content'])
+ && preg_match('/\@xphpstan-ignore/', $tokens[$commentEnd]['content']) === true
103
) {
104
$phpstanCommentLines += 1;
105
continue;
106
}
107
108
break;
109
- }
+ }//end for
110
111
// Constructor methods are exempt from requiring a docblock.
112
// @see https://www.drupal.org/project/coder/issues/3400560.
0 commit comments