Created
February 2, 2022 07:54
-
-
Save nickygerritsen/1ce6fcca431da612e2f4ac07f536f217 to your computer and use it in GitHub Desktop.
laravel-framework.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From c55de5e654d136bc24ca126aca4f5daf87491faa Mon Sep 17 00:00:00 2001 | |
From: Laurence Ioannou <github@theshiftexchange.com> | |
Date: Sat, 9 Dec 2017 14:24:58 +0000 | |
Subject: [PATCH] fix sqs queue for 7.2 (#22374) | |
--- | |
src/Illuminate/Queue/SqsQueue.php | 2 +- | |
tests/Queue/QueueSqsQueueTest.php | 14 ++++++++++++++ | |
2 files changed, 15 insertions(+), 1 deletion(-) | |
diff --git a/src/Illuminate/Queue/SqsQueue.php b/src/Illuminate/Queue/SqsQueue.php | |
index 1cf2f9a4b9a..c8bd3aec3fa 100755 | |
--- a/src/Illuminate/Queue/SqsQueue.php | |
+++ b/src/Illuminate/Queue/SqsQueue.php | |
@@ -121,7 +121,7 @@ public function pop($queue = null) | |
'AttributeNames' => ['ApproximateReceiveCount'], | |
]); | |
- if (count($response['Messages']) > 0) { | |
+ if (! is_null($response['Messages']) && count($response['Messages']) > 0) { | |
return new SqsJob( | |
$this->container, $this->sqs, $response['Messages'][0], | |
$this->connectionName, $queue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment