Skip to content

Conversation

@alcaeus
Copy link
Member

@alcaeus alcaeus commented Jul 16, 2024

This fixes a number of failures due to unexpected deprecation messages after these methods were deprecated in PHPC 1.20

@alcaeus alcaeus self-assigned this Jul 16, 2024
@alcaeus alcaeus requested a review from a team as a code owner July 16, 2024 09:02
@alcaeus alcaeus requested a review from GromNaN July 16, 2024 09:02
@alcaeus
Copy link
Member Author

alcaeus commented Jul 16, 2024

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.

@alcaeus alcaeus force-pushed the remove-deprecated-phpc-usage branch from 986c2b6 to 101bb44 Compare July 16, 2024 11:52
Comment on lines 32 to 33
implode(array_map(
'MongoDB\BSON\fromPHP',
fn ($input) => (string) Document::fromPHP($input),
Copy link
Member

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.

@alcaeus alcaeus requested a review from GromNaN July 16, 2024 14:30
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

LGTM

@alcaeus alcaeus enabled auto-merge (squash) July 16, 2024 14:38
@alcaeus alcaeus merged commit f4815a1 into mongodb:master Jul 16, 2024
@alcaeus alcaeus deleted the remove-deprecated-phpc-usage branch July 16, 2024 15:05
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