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) {