Skip to content

PHPC-2443: Deprecate string argument and accept Int64 instances in UTCDateTime constructor #1643

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

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Sep 11, 2024

PHPC-2443

This PR deprecates creating a MongoDB\BSON\UTCDateTime instance with a string, which was previously used to pass values exceeding the 32-bit range on 32-bit platforms. With MongoDB\BSON\Int64 available to the user, this has been replaced with the constructor accepting those values. I've updated all existing string usages in tests to Int64 instances, except where explicitly testing string inputs.

@alcaeus alcaeus requested a review from jmikola September 11, 2024 11:52
@alcaeus alcaeus force-pushed the phpc-2443-deprecate-string-argument-utcdatetime branch from 5174744 to 151409f Compare September 12, 2024 07:14
@alcaeus alcaeus requested a review from jmikola September 12, 2024 07:14
@alcaeus alcaeus merged commit c394d37 into mongodb:v1.20 Sep 13, 2024
82 checks passed
@alcaeus alcaeus deleted the phpc-2443-deprecate-string-argument-utcdatetime branch September 13, 2024 15:02
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