diff --git a/src/Instrumentation/Symfony/src/MessengerInstrumentation.php b/src/Instrumentation/Symfony/src/MessengerInstrumentation.php index 42fb0c16..6fbdcc2c 100644 --- a/src/Instrumentation/Symfony/src/MessengerInstrumentation.php +++ b/src/Instrumentation/Symfony/src/MessengerInstrumentation.php @@ -150,7 +150,7 @@ public static function register(): void post: static function ( SenderInterface $sender, array $params, - Envelope $result, + ?Envelope $result, ?\Throwable $exception ): void { $scope = Context::storage()->scope();