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
Markus Staab
7ca003e6ae
Rename TestCase to MonologTestCase ( #1953 )
2025-03-16 13:30:20 +01:00
Jordi Boggiano
f43e3d5637
Upgrade phpstan, phpunit ( #1923 )
...
* Upgrade phpstan, phpunit
* Fix phpunit deprecation
* Fix hg tests
* Fix php-console tests
* Fix phpunit on 8.1
* Bump phpconsole
2024-11-11 15:21:55 +01:00
Jordi Boggiano
b127292ee0
Fix phpunit deprecations
2024-04-12 17:26:33 +02:00
chris
8561130215
Upgrade to phpunit 10 ( #1806 )
...
Co-authored-by: Christopher Georg <christopher.georg@sr-travel.de >
2023-06-20 15:56:11 +02:00
Jordi Boggiano
1dacc790b9
Remove LevelName enum in favor of a Level::getName method, fixes #1667 ( #1668 )
2022-05-10 11:15:16 +02:00
Jordi Boggiano
2695fa86cd
CI fixes
2022-04-19 22:16:53 +02:00
Jordi Boggiano
2d006a8472
Convert level/levelName to enums ( #1656 )
2022-04-19 21:49:03 +02:00
Jordi Boggiano
a3ba6445a4
Cleanups
2022-03-21 14:18:56 +01:00
Jordi Boggiano
400effdd45
Fix some issues, bump phpunit version
2022-03-21 14:18:54 +01:00
Gemma Lynn
b39a394c05
Store native BSON types as-is in the MongoDB formatter ( #1620 )
2022-03-13 21:04:53 +01:00
Jordi Boggiano
ec146b38bd
Build tweaks
2020-12-09 23:22:08 +01:00
Mario Blažek
37900f9268
Upgrade PHPUnit to v8
2019-08-12 15:20:00 +02:00
George Mponos
ee350961da
Remove assertInternalType that it is deprecated
2018-12-16 23:46:26 +02:00
Jordi Boggiano
ca4ffa68f6
Use namespaced phpunit classes, fixes #983
2017-06-19 00:48:54 +02:00
Jordi Boggiano
5bbbac0ce9
Maybe now?
2016-09-25 16:29:20 +02:00
Jordi Boggiano
27e439ee41
Fix datetime rounding errors on travis
2016-09-25 16:20:46 +02:00
Jordi Boggiano
21dde4dedb
Move to strict mode and fix tests
2016-05-27 13:44:00 +01:00
Jordi Boggiano
f200e79879
CS fixes
2016-05-26 20:54:06 +01:00
Jordi Boggiano
e27225dc40
Switch to DateTimeImmutable everywhere
2016-05-20 20:55:31 +01:00
Jeremy Mikola
f585e714fc
Support ext-mongodb's UTCDateTime class in MongoDBFormatter
...
The legacy driver (i.e. ext-mongo) and MongoDate are not supported on PHP 7.
2016-01-21 16:22:47 -05:00
Jordi Boggiano
c889fb2648
CS fixes & upgrading cs fixer config
2015-11-18 17:09:46 +00:00
Jordi Boggiano
5ce2b38b3b
Fixing tests and CS, refs #468
2014-12-29 20:45:41 +00:00
Florian Plattner
04648dba78
some cleanup
2014-12-29 20:38:08 +01:00
Florian Plattner
d6f11d6ba3
Add MongoDBFormatter
2014-12-06 12:52:15 +01:00