Skip to content

Commit 1f40829

Browse files
committed
fix: warnings again
1 parent 6488a89 commit 1f40829

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Factory/PhpredisClientFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ private function createRedisArrayClient(array $dsns, string $class, string $alia
157157
try {
158158
/** @var list<string> $hostsList */
159159
$hostsList = array_map('strval', $hosts);
160-
$client = new RedisArray($hostsList, $redisArrayOptions);
161-
} catch (\RedisException $e) {
162-
throw new \RedisException(sprintf('Failed to create RedisArray with hosts %s: %s', implode(', ', $hosts), $e->getMessage()), 0, $e);
160+
$client = new RedisArray($hostsList, $redisArrayOptions);
161+
} catch (RedisException $e) {
162+
throw new RedisException(sprintf('Failed to create RedisArray with hosts %s: %s', implode(', ', $hosts), $e->getMessage()), 0, $e);
163163
}
164164

165165
$connectedHosts = $client->getHosts();

0 commit comments

Comments
 (0)