Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9641575

Browse files
committed
Fixed build failure
1 parent cb3047f commit 9641575

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ public static function createConnection(string $dsn, array $options = [])
213213
[$host, $port] = $address;
214214
}
215215

216-
$hostIndex++;
217-
} while ($hostIndex < count($hosts) && !$address);
216+
++$hostIndex;
217+
} while ($hostIndex < \count($hosts) && !$address);
218218

219219
if (isset($params['redis_sentinel']) && !$address) {
220220
throw new InvalidArgumentException(sprintf('Failed to retrieve master information from master name "%s" and dsn "%s".', $params['redis_sentinel'], $dsn));

0 commit comments

Comments
 (0)