alcaeus / mongo-php-adapter

:link: Adapter to provide ext-mongo interface on top of mongo-php-library
MIT License
463 stars 124 forks source link

PHP 8.1 Support #292

Closed Nickolay-Kehayov closed 2 years ago

Nickolay-Kehayov commented 2 years ago

Hello. I saw that in commit https://github.com/alcaeus/mongo-php-adapter/commit/0e99bf5ea15f8e9b7ddb3a6dc38c11aa95330ca1 , the compatibility with PHP 8.1 is improved , but there are still deprecated errors, it would seem. in PHP 8.1.5 i get the following:

Deprecated: MongoId implements the Serializable interface, which is deprecated. Implement serialize() and unserialize() instead (or in addition, if support for old PHP versions is necessary) in /vendor/alcaeus/mongo-php-adapter/lib/Mongo/MongoId.php on line 23

Is there something that i am missing ? Thank you in advance.

alcaeus commented 2 years ago

Please see https://github.com/alcaeus/mongo-php-adapter/pull/290#issuecomment-1030329398.