Skip to content

PHPC-1933: Cursor::key() return type is mixed #1259

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
Sep 13, 2021

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Sep 10, 2021

https://jira.mongodb.org/browse/PHPC-1933

Using IS_LONG produces a fatal error in PHP 8.1 if the position is invalid and Cursor::key() returns null.

This wasn't caught in #1245 because we don't have PHP 8.1 in CI yet. I must have missed this failure when testing locally.

Using IS_LONG produces a fatal error in PHP 8.1 if the position is invalid and Cursor::key() returns null.
@jmikola jmikola requested a review from alcaeus September 10, 2021 19:46
@jmikola jmikola merged commit 3639e67 into mongodb:master Sep 13, 2021
@jmikola jmikola deleted the phpc-1933 branch September 13, 2021 14:12
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