From 0780ef1de0595e540d84ff985e7162c951969dc1 Mon Sep 17 00:00:00 2001 From: Nikolas Evers Date: Fri, 13 Dec 2024 14:55:24 +0100 Subject: [PATCH] fix predis `clear()` when using redis 7.4 --- src/Repositories/RedisMetricsRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repositories/RedisMetricsRepository.php b/src/Repositories/RedisMetricsRepository.php index ba0c635e..00fdd7bf 100644 --- a/src/Repositories/RedisMetricsRepository.php +++ b/src/Repositories/RedisMetricsRepository.php @@ -390,7 +390,7 @@ public function clear() do { [$cursor, $keys] = $this->connection()->scan( - $cursor, ['match' => config('horizon.prefix').$pattern] + $cursor ?? 0, ['match' => config('horizon.prefix').$pattern] ); foreach ($keys ?? [] as $key) {