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

PHPStan: Add additional unchecked exceptions #1681

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

williamjallen
Copy link
Collaborator

In many cases, we deliberately want a request to crash and trigger the error handler when an unexpected unrecoverable situation occurs. When PHPStan was first set up, the list of unchecked exceptions was kept to a minimum to allow us to decide which exceptions should be checked and which should be unchecked. After working with it for a few months, it's clear that a few more exception types need to be added.

It is possible that more exception types will need to be added to this list in the future. The goal is for PHPStan to be a useful tool which flags problems like division by zero exceptions, so they can be dealt with without crashing an entire request.

@josephsnyder
Copy link
Member

@williamjallen, just needs a rebase and then we can auto-merge. Please and thank you!

@williamjallen williamjallen added this pull request to the merge queue Sep 5, 2023
Merged via the queue into Kitware:master with commit 35c8fd8 Sep 5, 2023
@williamjallen williamjallen deleted the unchecked-exceptions branch September 5, 2023 21:22
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.

2 participants