Skip to content

Commit cad7e68

Browse files
committed
r Use regex instead of version_compare()
1 parent e579178 commit cad7e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sqs/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function pop($queue = null)
7272

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

75-
if (version_compare($this->container->version(), '5.4') >= 0) {
75+
if (preg_match('/5\.[45].*/', $this->container->version())) {
7676
return new SqsJob($this->container, $this->sqs, $response, $this->connectionName, $queue);
7777
}
7878

0 commit comments

Comments
 (0)