1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-26 18:16:24 +01:00
Files
php-monolog/tests/Monolog/Formatter
Jeremy Mikola 1297c4421b Replace deprecated code in MongoDB classes and allow 2.0+ (#1998)
* Remove unused code path in MongoDBFormatter

Monolog already required mongodb/mongodb 1.8+ (and a related ext-mongodb version) so this code path was never used.

* Use Collection::getCollection() from mongodb/mongodb 1.21

The original selectCollection method is deprecated. Since Monolog itself requires PHP 8.1, it should be sane to rely on 1.21+, which shares the same requirement.

* Update class refs for MongoDB extension and library

* Conditionally use Collection getter by version

* Relax PHPLIB version requirement

* Use RequiresPhpExtension attribute to require ext-mongodb

* Import UTCDateTime class and revise var names
2025-10-23 20:47:46 +02:00
..
2025-10-23 20:47:05 +02:00