Skip to content

Commit ab51ff9

Browse files
committed
Set initial value of loop variable to zero in RedisCluster driver.
1 parent 6f1bedb commit ab51ff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/Phpfastcache/Drivers/Rediscluster/Driver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected function driverReadAllKeys(string $pattern = '*'): iterable
126126
{
127127
$result = [[]];
128128
foreach ($this->instance->_masters() as $master) {
129-
$i = null;
129+
$i = 0;
130130
$pattern = $pattern === '' ? '*' : $pattern;
131131
do {
132132
$result[] = $this->instance->scan(

0 commit comments

Comments
 (0)