Skip to content

Commit 8e50c7d

Browse files
authored
Merge pull request #160 from PHPCSStandards/feature/debugsniff-simplification
Debug/TokenList: simplify skipping the rest of the file
2 parents 311c824 + e45d6da commit 8e50c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PHPCSDebug/Sniffs/Debug/TokenListSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public function process(File $phpcsFile, $stackPtr)
139139
}
140140

141141
// Only do this once per file.
142-
return ($phpcsFile->numTokens + 1);
142+
return $phpcsFile->numTokens;
143143
}
144144

145145
/**

0 commit comments

Comments
 (0)