phpgrep icon indicating copy to clipboard operation
phpgrep copied to clipboard

Ignore output `\bom in the middle of file`

Open Azeirah opened this issue 6 years ago • 1 comments

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.

Azeirah avatar Aug 14 '19 09:08 Azeirah

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.

quasilyte avatar Aug 16 '19 00:08 quasilyte