From afda999655862630df769ad5785d4e734a2f8b5d Mon Sep 17 00:00:00 2001 From: edricwilliem Date: Fri, 28 Nov 2025 08:19:54 +0000 Subject: [PATCH] fix: redis later getQueue should used params[3] --- src/Hooks/Illuminate/Contracts/Queue/Queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hooks/Illuminate/Contracts/Queue/Queue.php b/src/Hooks/Illuminate/Contracts/Queue/Queue.php index 403cab6..48dcf23 100644 --- a/src/Hooks/Illuminate/Contracts/Queue/Queue.php +++ b/src/Hooks/Illuminate/Contracts/Queue/Queue.php @@ -94,7 +94,7 @@ protected function hookLater(): bool ->spanBuilder(vsprintf('%s %s', [ TraceAttributeValues::MESSAGING_OPERATION_TYPE_CREATE, /** @phan-suppress-next-line PhanUndeclaredMethod */ - method_exists($queue, 'getQueue') ? $queue->getQueue($params[2] ?? null) : $queue->getConnectionName(), + method_exists($queue, 'getQueue') ? $queue->getQueue($params[3] ?? null) : $queue->getConnectionName(), ])) ->setSpanKind(SpanKind::KIND_PRODUCER) ->setAttributes($attributes)