Skip to content

PHPC-1699: Ensure all argument parsing errors throw InvalidArgumentException #1173

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

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Oct 27, 2020

PHPC-1699

This updates many non-constructors to wrap argument parsing errors into dedicated exceptions, as is done in most constructors.

Note that this does not handle errors that are thrown in PHP 8: while we don't specifically document these exception types in our documentation, there's no need to override the native handling.

@alcaeus alcaeus self-assigned this Oct 27, 2020
@alcaeus alcaeus merged commit 60febd0 into mongodb:master Oct 28, 2020
@alcaeus alcaeus deleted the consistent-error-handler-wrapping branch October 28, 2020 07:20
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

Successfully merging this pull request may close these issues.

2 participants