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

ControlStructures::getCaughtExceptions(): don't throw an exception for a parse error #594

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 12, 2024

Sniffs should silently ignore parse errors in the file under scan.

This commit removes a parse error related exception.

Includes updated unit test.

Also see squizlabs/PHP_CodeSniffer#2455

…r a parse error

Sniffs should silently ignore parse errors in the file under scan.

This commit removes a parse error related exception.

Includes updated unit test.

Also see squizlabs/PHP_CodeSniffer 2455
@jrfnl jrfnl added this to the 1.0.x Next milestone May 12, 2024
@jrfnl jrfnl merged commit 473cf6c into develop May 12, 2024
54 checks passed
@jrfnl jrfnl deleted the feature/controlstructures-getcaughtexceptions-no-exception-on-parse-error branch May 12, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant