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

PHPC-2144 Throw a LogicException when getting info from unacknowledged write result #1687

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Sep 24, 2024

Fix PHPC-2144

Transform deprecation to exception. The exception message comes from PHPLIB: https://github.com/mongodb/mongo-php-library/blob/v1.x/src/Exception/BadMethodCallException.php#L45

And remove nullable return types from WriteResult::get*Count accessors

src/MongoDB/WriteResult.c Outdated Show resolved Hide resolved
…d write result

And remove nullable from WriteResult get*Count accessors
@GromNaN GromNaN force-pushed the PHPC-2144 branch 3 times, most recently from 8a89718 to 8944baa Compare September 24, 2024 15:19
@GromNaN GromNaN merged commit 777a643 into mongodb:v2.x Sep 24, 2024
62 checks passed
@GromNaN GromNaN deleted the PHPC-2144 branch September 24, 2024 20:31
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