squizlabs / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
10.66k stars 1.48k forks source link

Various sniffs: always return EOF pointer #3911

Closed jrfnl closed 10 months ago

jrfnl commented 11 months ago

Description

Always return EOF pointer for files scanning the complete file in one go as if any of the error conditions are hit, it is useless to try again for the same file.

Suggested changelog entry

N/A

jrfnl commented 10 months ago

Closing as replaced by https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/95