From 0d6e56b08c9a7b36c0a69ecc77a4db74e8c0448a Mon Sep 17 00:00:00 2001 From: Tinywan <756684177@qq.com> Date: Mon, 13 Jun 2022 14:49:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E9=94=99=E5=86=85=E5=AE=B9=E6=98=AF?= =?UTF-8?q?=20=20protocol=20error,=20got=20'H'=20as=20reply=20type=20byte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Watcher/RedisWatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Watcher/RedisWatcher.php b/src/Watcher/RedisWatcher.php index f84086b..1fb457a 100644 --- a/src/Watcher/RedisWatcher.php +++ b/src/Watcher/RedisWatcher.php @@ -86,7 +86,7 @@ public function close(): void */ private function createRedisClient(array $config): Client { - $redis = new Client('redis://' . $config['host'] ?? '127.0.0.1' . ':' . $config['port'] ?? 6379); + $redis = new Client('redis://' . ($config['host'] ?? '127.0.0.1') . ':' . ($config['port'] ?? 6379)); $redis->auth($config['password'] ?? ''); return $redis;