Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore output \bom in the middle of file #22

Open
Azeirah opened this issue Aug 14, 2019 · 1 comment
Open

Ignore output \bom in the middle of file #22

Azeirah opened this issue Aug 14, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Azeirah
Copy link

Azeirah commented Aug 14, 2019

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.

@quasilyte quasilyte added the enhancement New feature or request label Aug 15, 2019
@quasilyte quasilyte self-assigned this Aug 15, 2019
@quasilyte
Copy link
Owner

quasilyte commented Aug 16, 2019

Seems like it's an error from a lexer library that is used by the php parser library.
z7zmey/php-parser#96

Can be solved only by a kludge right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants