Skip to content

Commit

Permalink
+ Support for 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Jan 29, 2017
1 parent a81d562 commit 785cbea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Sqs/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public function pop($queue = null)

$response = $this->modifyPayload($response['Messages'][0], $class);

if (preg_match('/5\.4.*/', $this->container->version())) {
return new SqsJob($this->container, $this->sqs, $response, $this->connectionName, $queue);
}

return new SqsJob($this->container, $this->sqs, $queue, $response);
}
}
Expand Down

0 comments on commit 785cbea

Please sign in to comment.