Skip to content

Commit 7717764

Browse files
authored
fix predis clear() when using redis 7.4 (#1522)
1 parent f955296 commit 7717764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Repositories/RedisMetricsRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ public function clear()
390390

391391
do {
392392
[$cursor, $keys] = $this->connection()->scan(
393-
$cursor, ['match' => config('horizon.prefix').$pattern]
393+
$cursor ?? 0, ['match' => config('horizon.prefix').$pattern]
394394
);
395395

396396
foreach ($keys ?? [] as $key) {

0 commit comments

Comments
 (0)