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.2 Error TypeConverter and MongoId #304

Closed juizmill closed 12 months ago

juizmill commented 12 months ago

An error is being generated due to the migration to PHP 8.0

image

https://github.com/alcaeus/mongo-php-adapter/blob/1.2.4/lib/Alcaeus/MongoDbAdapter/TypeConverter.php#L180

image

https://github.com/alcaeus/mongo-php-adapter/blob/1.x/lib/Mongo/MongoId.php

How can we fix this problem?

alcaeus commented 12 months ago

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

This package was created to allow users to update to PHP 7 without having to migrate to the new MongoDB driver first. The last MongoDB version supported by the legacy driver is MongoDB 3.2, which is no longer supported by the new driver. Please fork the library, adapting and maintaining it for your use case, or use the supported MongoDB driver. The package will not be updated for any future PHP versions.