-
Bug
-
Resolution: Fixed
-
Minor
-
4.1, 4.2
-
MOODLE_401_STABLE, MOODLE_402_STABLE
-
MOODLE_401_STABLE
-
MDL-76617_401 -
-
2
-
Team Hedgehog Sprint 1.3
The new php-mongodb extension v1.15.0 needs the mongo-php-library v1.15.0 to be used.
Right now we are using mongo-php-library v1.13.1 (updated by MDL-75481).
And, right now, with php81, it is emitting some warnings leading to failed tests:
Link: https://ci.moodle.org/view/Testing/job/DEV.81%20-%20PHP%208.1%20PHPUnit%20-%20master/104/console
1) cachestore_mongodb\store_test::test_collection_name
|
This test printed output:
|
Deprecated: Return type of MongoDB\Model\IndexInput::bsonSerialize() should either be compatible with MongoDB\BSON\Serializable::bsonSerialize(): object|array, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/cache/stores/mongodb/MongoDB/Model/IndexInput.php on line 94
|
|
Deprecated: Return type of MongoDB\Model\BSONArray::bsonSerialize() should either be compatible with MongoDB\BSON\Serializable::bsonSerialize(): object|array, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/cache/stores/mongodb/MongoDB/Model/BSONArray.php on line 74
|
...
|
...
|
So this is about to upgrade mongo-php-library to v1.15.0, that works ok with the extension v1.15.0 (and also with the extension v1.14.1, maybe also with older).
Changes need to go both to 401_STABLE and master, because 401 is getting php81 support, so we need this.
Bonus, the v1.15.0 seems to be also ready for php82.
Ciao
- will help resolve
-
MDL-76373 Review third party libraries for new versions (4.2 release)
-
- Closed
-
- links to