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 87d0940 commit 30eac2aCopy full SHA for 30eac2a
coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php
@@ -99,7 +99,7 @@ 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('/\@phpstan-ignore/', $tokens[$commentEnd]['content']) === true
+ && preg_match('/\@phpstan-ignore/', $tokens[$commentEnd]['content']) === 1
103
) {
104
$phpstanCommentLines += 1;
105
continue;
0 commit comments