diff --git a/composer.json b/composer.json index dc32944..408677b 100644 --- a/composer.json +++ b/composer.json @@ -14,9 +14,9 @@ ], "require": { "php": ">=5.5.0", - "illuminate/support": "5.*|^6.0", - "illuminate/queue": "5.*|^6.0", - "illuminate/bus": "5.*|^6.0", + "illuminate/support": "5.*|^6.0|^7.0", + "illuminate/queue": "5.*|^6.0|^7.0", + "illuminate/bus": "5.*|^6.0|^7.0", "aws/aws-sdk-php": "~3.0" }, "require-dev": { diff --git a/src/Sqs/Queue.php b/src/Sqs/Queue.php index 54d916c..ffd6f98 100644 --- a/src/Sqs/Queue.php +++ b/src/Sqs/Queue.php @@ -72,7 +72,7 @@ public function pop($queue = null) $response = $this->modifyPayload($response['Messages'][0], $class); - if (preg_match('/(5\.[4-8]\..*)|(6\.[0-9]*\..*)/', $this->container->version())) { + if (preg_match('/(5\.[4-8]\..*)|(6\.[0-9]*\..*)|(7\.[0-9]*\..*)/', $this->container->version())) { return new SqsJob($this->container, $this->sqs, $response, $this->connectionName, $queue); }