Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpFoundation][Lock] Ensure compatibility with ext-mongodb v2#58619
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
| '$gt' =>$this->createMongoDateTime(microtime(true)), | ||
| ], | ||
| ], [ | ||
| 'readPreference' =>newReadPreference(\defined(ReadPreference::PRIMARY) ? ReadPreference::PRIMARY : ReadPreference::RP_PRIMARY), |
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.
The existing code is incorrect: it checks the existence of the constantvalue. See the conversation why this condition was added:#37140 (comment)
This was removed in 6.4 bybc24cb3#diff-d0f7d4ac57862532ef468d4fa38f1879eeb1c6e6f142118ecfa28dba891601b4L266
Thank you@GromNaN. |
b756c5e intosymfony:5.4Uh oh!
There was an error while loading.Please reload this page.
This PR was merged into the 6.4 branch.Discussion----------[Lock] Ensure compatibility with ext-mongodb v2| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Issues | -| License | MITSame as#58619 for branch 6.4 that was reworked by#52336Commits-------cd3b778 Ensure compatibility with ext-mongodb v2
Uh oh!
There was an error while loading.Please reload this page.
The extension
mongodband the librarymongodb/mongodbwill soon have a version 2.0 that brings breaking changes (seeextension changes andlibrary changes). This PR ensures compatibility with the upcoming version for Symfony 5.4.MongoDB\Collection::updateOne(), the closure in the mockwillReturnCallbackmust return an object.PHPLIB-954: Add return types to all methods mongodb/mongo-php-library#1391MongoDB\Driver\Exception\WriteExceptionremoved in favor ofBulkWriteExceptionPHPC-2348 RemoveWriteExceptionand movegetWriteResulttoBulkWriteExceptionmongodb/mongo-php-driver#1685. No need to keep catchingWriteExceptionsince a the driver bulk API have always be used.floatsupport to constructMongoDB\BSON\UTCDateTimeis removedPHPC-2459: Remove support for float arg in UTCDateTime ctor mongodb/mongo-php-driver#1709