From 3c254c2349af83a7723f1a5b47655304ccc7e571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Konvi=C4=8Dka?= Date: Wed, 27 Jul 2022 12:12:12 +0200 Subject: [PATCH] change redis v6 auth data type param --- src/Kdyby/Redis/RedisClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kdyby/Redis/RedisClient.php b/src/Kdyby/Redis/RedisClient.php index 8af46b7..c92d997 100644 --- a/src/Kdyby/Redis/RedisClient.php +++ b/src/Kdyby/Redis/RedisClient.php @@ -221,11 +221,11 @@ class RedisClient implements \ArrayAccess * @param ?int $port * @param int $database * @param int $timeout - * @param string $auth + * @param string|array $auth * @param bool $persistent * @throws \Kdyby\Redis\Exception\MissingExtensionException */ - public function __construct(string $host = '127.0.0.1', ?int $port = 6379, int $database = 0, int $timeout = 10, ?string $auth = NULL, bool $persistent = FALSE) + public function __construct(string $host = '127.0.0.1', ?int $port = 6379, int $database = 0, int $timeout = 10, $auth = NULL, bool $persistent = FALSE) { $this->host = $host; $this->port = $port;