Skip to content

Commit a543896

Browse files
Merge branch '7.1' into 7.2
* 7.1: Revert "bug symfony#58661 [Cache] Initialize RedisAdapter cursor to 0 (thomas-hiron)"
2 parents 9864821 + cad933c commit a543896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Traits/RedisTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ protected function doClear(string $namespace): bool
512512
continue;
513513
}
514514

515-
$cursor = 0;
515+
$cursor = null;
516516
do {
517517
$keys = $host instanceof \Predis\ClientInterface ? $host->scan($cursor, 'MATCH', $pattern, 'COUNT', 1000) : $host->scan($cursor, $pattern, 1000);
518518
if (isset($keys[1]) && \is_array($keys[1])) {

0 commit comments

Comments
 (0)