diff --git a/src/Instrumentation/MongoDB/composer.json b/src/Instrumentation/MongoDB/composer.json index 29d175ebe..49bf3b38a 100644 --- a/src/Instrumentation/MongoDB/composer.json +++ b/src/Instrumentation/MongoDB/composer.json @@ -8,9 +8,9 @@ "license": "Apache-2.0", "require": { "php": ">=8.1", - "ext-mongodb": "^1.13", + "ext-mongodb": "^1.13 | ^2.0", "ext-json": "*", - "mongodb/mongodb": "^1.15", + "mongodb/mongodb": "^1.15 || ^2.0", "open-telemetry/api": "^1.0", "open-telemetry/sem-conv": "^1.30" }, diff --git a/src/Instrumentation/MongoDB/src/MongoDBInstrumentationSubscriber.php b/src/Instrumentation/MongoDB/src/MongoDBInstrumentationSubscriber.php index 83da4a8a8..03e8fa6a8 100644 --- a/src/Instrumentation/MongoDB/src/MongoDBInstrumentationSubscriber.php +++ b/src/Instrumentation/MongoDB/src/MongoDBInstrumentationSubscriber.php @@ -60,7 +60,7 @@ public function __construct(CachedInstrumentation $instrumentation, callable $co /** * @psalm-suppress MixedAssignment,MixedArrayTypeCoercion,MixedArrayOffset,MixedArgument - * @phan-suppress PhanDeprecatedFunctionInternal + * @phan-suppress PhanDeprecatedFunctionInternal,PhanUndeclaredMethod */ public function commandStarted(CommandStartedEvent $event): void {