Skip to content

Commit 8b3bf65

Browse files
[Messenger] Fix reading pending messages with Redis
1 parent 46a4775 commit 8b3bf65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private function claimOldPendingMessages()
304304
try {
305305
// This could soon be optimized with https://github.com/antirez/redis/issues/5212 or
306306
// https://github.com/antirez/redis/issues/6256
307-
$pendingMessages = $this->connection->xpending($this->stream, $this->group, '-', '+', 1);
307+
$pendingMessages = $this->connection->xpending($this->stream, $this->group, '-', '+', 1) ?: [];
308308
} catch (\RedisException $e) {
309309
throw new TransportException($e->getMessage(), 0, $e);
310310
}

0 commit comments

Comments
 (0)