Skip to content

Commit 11cd78d

Browse files
authored
Update AmqpQueue.php
https://github.com/php-enqueue/laravel-queue/blob/master/src/Queue.php#L107 the get queue method already return `Interop\Queue\PsrQueue`
1 parent 06d481f commit 11cd78d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AmqpQueue.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function pop($queue = null)
5454
*/
5555
protected function declareQueue($queue = null)
5656
{
57-
$psrQueue = $this->getPsrContext()->createQueue($this->getQueue($queue));
57+
$psrQueue = $this->getQueue($queue);
5858
$psrQueue->addFlag(\Interop\Amqp\AmqpQueue::FLAG_DURABLE);
5959

6060
$this->getPsrContext()->declareQueue($psrQueue);

0 commit comments

Comments
 (0)