Skip to content

Commit b95a304

Browse files
committed
L5 compatibility fix
1 parent baf7955 commit b95a304

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Jobs/AMQPJob.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Forumhouse\LaravelAmqp\Jobs;
44

55
use Illuminate\Container\Container;
6+
use Illuminate\Contracts\Queue\Queue as QueueContract;
67
use Illuminate\Queue\Jobs\Job;
7-
use Illuminate\Queue\Queue;
88
use PhpAmqpLib\Channel\AMQPChannel;
99
use PhpAmqpLib\Message\AMQPMessage;
1010

@@ -13,7 +13,7 @@
1313
*
1414
* @package Forumhouse\LaravelAmqp\Jobs
1515
*/
16-
class AMQPJob extends Job
16+
class AMQPJob extends Job implements \Illuminate\Contracts\Queue\Job
1717
{
1818
/**
1919
* @var string
@@ -106,7 +106,7 @@ public function release($delay = 0)
106106
$job = $body['job'];
107107
$data = $body['data'];
108108

109-
/** @var Queue $queue */
109+
/** @var QueueContract $queue */
110110
$queue = $this->container['queue']->connection();
111111
if ($delay > 0) {
112112
$queue->later($delay, $job, $data, $this->getQueue());

0 commit comments

Comments
 (0)