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

PHP parse error catching multiple exceptions using '|' #2650

Closed
mschwager opened this issue Feb 25, 2021 · 2 comments
Closed

PHP parse error catching multiple exceptions using '|' #2650

mschwager opened this issue Feb 25, 2021 · 2 comments
Labels
alpha Relates to an experimental feature bug Something isn't working good first task Would take a bit longer to fix than "good first issue" lang:php

Comments

@mschwager
Copy link
Contributor

Repro: https://semgrep.dev/s/BkrA/

It looks like catching multiple exceptions using the | operator was included in PHP 7.1.0: https://www.php.net/manual/en/language.exceptions.php

@mschwager mschwager added bug Something isn't working lang:php alpha Relates to an experimental feature labels Feb 25, 2021
@mschwager
Copy link
Contributor Author

Hmm, looks like we're still having issues when there are multiple catch statements: https://semgrep.dev/s/owJ6/

@mschwager mschwager reopened this Jul 22, 2021
@aryx aryx added the good first task Would take a bit longer to fix than "good first issue" label Feb 17, 2022
@aryx
Copy link
Collaborator

aryx commented May 31, 2022

works now

@aryx aryx closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alpha Relates to an experimental feature bug Something isn't working good first task Would take a bit longer to fix than "good first issue" lang:php
Development

No branches or pull requests

2 participants