Skip to content

PHPC-2350: Test that PackedArray::fromJSON() accepts objects with valid keys #1703

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 30, 2024

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Sep 27, 2024

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

This came to me while writing PHP docs and I realized it was never tested in the original PR (#1645). I don't think this warrants a separate ticket.

@@ -10,6 +10,8 @@ $tests = [
'[ 1, 2, 3 ]',
'[[ 1, 2, 3 ]]',
'[{ "bar": 1 }]',
// JSON objects are accepted iff the keys are valid
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was gonna nitpick the typo, but TIL that iff is an actual word.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I don't like how easily this can be mixed up for a typo but it'd be a complete waste of space to write "if and only if"

@alcaeus alcaeus merged commit 78fd15c into v1.20 Sep 30, 2024
79 checks passed
@alcaeus alcaeus deleted the 1.20-phpc-2350-extra-test branch September 30, 2024 08:13
This was referenced Sep 30, 2024
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