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;