Skip to content

Commit

Permalink
r Use regex instead of version_compare()
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Sep 28, 2017
1 parent e579178 commit cad7e68
Showing 1 changed file with 1 addition and 1 deletion.
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 (version_compare($this->container->version(), '5.4') >= 0) {
if (preg_match('/5\.[45].*/', $this->container->version())) {

This comment has been minimized.

Copy link
@redscode

redscode Feb 27, 2018

This breaks Laravel 5.6

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

Expand Down

0 comments on commit cad7e68

Please sign in to comment.