phpgrep
phpgrep copied to clipboard
Ignore output `\bom in the middle of file`
I work on a large legacy project with tons of libraries and files as old as 10 years...
Every run of phpgrep over the entire project prints a bunch of this error
string-input.php:1:7: unicode (UTF-8) BOM in middle of file
and
string-input.php:26:15: unicode (UTF-8) BOM in middle of file
It would be best if these warnings were just ignored.
Seems like it's an error from a lexer library that is used by the php parser library. https://github.com/z7zmey/php-parser/issues/96
Can be solved only by a kludge right now.