Skip to content

Commit 47094e3

Browse files
authored
fix(confd): correct NacosClient instantiation parameter format (#959)
Changed from named parameter array format to positional parameter format when instantiating NacosClient via the make() function. Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>
1 parent d7872d3 commit 47094e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Driver/Nacos.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(private ConfigInterface $config)
5454
$this->isGrpcEnabled = (bool) ($config['grpc']['enable'] ?? false);
5555
$this->listenerConfig = (array) $this->config->get('confd.drivers.nacos.listener_config', []);
5656
$this->mapping = (array) $this->config->get('confd.drivers.nacos.mapping', []);
57-
$this->client = make(NacosClient::class, ['config' => $this->buildNacosConfig($config)]);
57+
$this->client = make(NacosClient::class, [$this->buildNacosConfig($config)]);
5858
$this->timer = new Timer($this->logger);
5959
}
6060

0 commit comments

Comments
 (0)