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.68k stars 1.48k forks source link

Various sniffs: always return EOF pointer #3911

Closed jrfnl closed 12 months ago

jrfnl commented 1 year 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 12 months ago

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