Skip to content

Commit

Permalink
Merge pull request #160 from PHPCSStandards/feature/debugsniff-simpli…
Browse files Browse the repository at this point in the history
…fication

Debug/TokenList: simplify skipping the rest of the file
  • Loading branch information
jrfnl authored Sep 10, 2024
2 parents 311c824 + e45d6da commit 8e50c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPCSDebug/Sniffs/Debug/TokenListSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function process(File $phpcsFile, $stackPtr)
}

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

/**
Expand Down

0 comments on commit 8e50c7d

Please sign in to comment.