Skip to content

Commit 695ed86

Browse files
committed
Merge branch 'master' into 4.x
2 parents 1aca784 + fcfefc6 commit 695ed86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Standards/PSR12/Sniffs/Files/FileHeaderSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function process(File $phpcsFile, $stackPtr)
5252
$headerLines = $this->getHeaderLines($phpcsFile, $openTag);
5353
if (empty($headerLines) === true && $openTag === $stackPtr) {
5454
// No content in the file.
55-
return;
55+
return $phpcsFile->numTokens;
5656
}
5757

5858
$possibleHeaders[$openTag] = $headerLines;

0 commit comments

Comments
 (0)