Skip to content

Commit

Permalink
Merge pull request #44 from jason-klein/dev-laravel7x
Browse files Browse the repository at this point in the history
Add support for Laravel 7.x
  • Loading branch information
dusterio authored Mar 10, 2020
2 parents 0f37163 + 2fb1a0b commit e6c6cba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Sqs/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e6c6cba

Please sign in to comment.