-
Notifications
You must be signed in to change notification settings - Fork 260
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
Remove usage of deprecated BSON functions #1361
Conversation
I'm surprised the psalm errors showed up again, as they were added to the baseline. It could be an issue of the context (i.e. the actual code triggering it) having changed and GitHub seeing it as a new issue as a result. Either way, I've added an assertion and type hint to the class. |
986c2b6
to
101bb44
Compare
tests/Model/BSONIteratorTest.php
Outdated
implode(array_map( | ||
'MongoDB\BSON\fromPHP', | ||
fn ($input) => (string) Document::fromPHP($input), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This transformation could move to the test method, since it's identical in all data set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This fixes a number of failures due to unexpected deprecation messages after these methods were deprecated in PHPC 1.20