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

Catch parsing errors for invalid files #1

Closed
NielsdeBlaauw opened this issue Jan 17, 2019 · 0 comments
Closed

Catch parsing errors for invalid files #1

NielsdeBlaauw opened this issue Jan 17, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@NielsdeBlaauw
Copy link
Owner

PHP-Parser throws an error exception when a php file being parsed is not valid.

Example:

Fatal error: Uncaught PhpParser\Error: Namespace declaration statement has to be the very first statement in the script on line 8 in [...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant