Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug/TokenList: simplify skipping the rest of the file
This commit updates the sniff to use `return $phpcsFile->numTokens` instead of `return ($phpcsFile->numTokens + 1)`. If a sniff file contains 50 tokens, the last `$stackPtr` will be 49, so returning `50` will already get us passed the end of the token stack and the `+ 1` is redundant.
- Loading branch information