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.
2 parents 91986ec + 695c7aa commit fcfefc6Copy full SHA for fcfefc6
src/Standards/PSR12/Sniffs/Files/FileHeaderSniff.php
@@ -52,7 +52,7 @@ public function process(File $phpcsFile, $stackPtr)
52
$headerLines = $this->getHeaderLines($phpcsFile, $openTag);
53
if (empty($headerLines) === true && $openTag === $stackPtr) {
54
// No content in the file.
55
- return;
+ return $phpcsFile->numTokens;
56
}
57
58
$possibleHeaders[$openTag] = $headerLines;
0 commit comments