Skip to content

Commit afda999

Browse files
committed
fix: redis later getQueue should used params[3]
1 parent fa6e0c9 commit afda999

File tree

1 file changed

+1
-1
lines changed
  • src/Hooks/Illuminate/Contracts/Queue

1 file changed

+1
-1
lines changed

src/Hooks/Illuminate/Contracts/Queue/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected function hookLater(): bool
9494
->spanBuilder(vsprintf('%s %s', [
9595
TraceAttributeValues::MESSAGING_OPERATION_TYPE_CREATE,
9696
/** @phan-suppress-next-line PhanUndeclaredMethod */
97-
method_exists($queue, 'getQueue') ? $queue->getQueue($params[2] ?? null) : $queue->getConnectionName(),
97+
method_exists($queue, 'getQueue') ? $queue->getQueue($params[3] ?? null) : $queue->getConnectionName(),
9898
]))
9999
->setSpanKind(SpanKind::KIND_PRODUCER)
100100
->setAttributes($attributes)

0 commit comments

Comments
 (0)