Skip to content

Syntax error for multiple exception catch with OR ( | ) #634

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

Closed
Skarlso opened this issue Apr 16, 2018 · 5 comments
Closed

Syntax error for multiple exception catch with OR ( | ) #634

Skarlso opened this issue Apr 16, 2018 · 5 comments

Comments

@Skarlso
Copy link

Skarlso commented Apr 16, 2018

Hi.

IntelliSense marks this as a syntax error:

            try {
            } catch (AException | BException $e) {
            }
@smuuf
Copy link

smuuf commented Apr 16, 2018

This is directly linked to Is it possible to hide errors coming from imperfect tolerant-php-parser? #633.

@Skarlso
Copy link
Author

Skarlso commented Apr 19, 2018

Thanks.

@Zerquix18
Copy link

Just came here while struggling with that

@gtfcugb
Copy link

gtfcugb commented May 17, 2018

with multi catch ,it is report error incorrectly

@felixfbecker
Copy link
Owner

This is tracked in microsoft/tolerant-php-parser#103

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

No branches or pull requests

6 participants
@Skarlso @Zerquix18 @gtfcugb @smuuf @felixfbecker and others