Skip to content

Commit fcfefc6

Browse files
authored
Merge pull request #1236 from PHPCSStandards/feature/psr12-fileheader-minor-consistency-tweak
PSR12/FileHeader: minor consistency fix
2 parents 91986ec + 695c7aa commit fcfefc6

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)