From 758539a1306549469c3fa9412199510ff20f4492 Mon Sep 17 00:00:00 2001 From: "Phil E. Taylor" Date: Wed, 2 Mar 2022 20:15:30 +0000 Subject: [PATCH] [redis-messenger] remove undefined array key warnings --- .../Component/Messenger/Bridge/Redis/Transport/Connection.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php b/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php index 6c8445fefcfcc..152ea850d12d1 100644 --- a/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php +++ b/src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php @@ -346,10 +346,12 @@ public function get(): ?array $queuedMessageCount = $this->rawCommand('ZCOUNT', 0, $now); while ($queuedMessageCount--) { - if (![$queuedMessage, $expiry] = $this->rawCommand('ZPOPMIN', 1)) { + if (!$message = $this->rawCommand('ZPOPMIN', 1)) { break; } + [$queuedMessage, $expiry] = $message; + if (\strlen($expiry) === \strlen($now) ? $expiry > $now : \strlen($expiry) < \strlen($now)) { // if a future-placed message is popped because of a race condition with // another running consumer, the message is readded to the queue pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy