Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Jan 25, 2024
1 parent e4b073c commit 119af59
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ protected static function showDeprecated(): void
*/
protected function _getClient(array $params = [], ?LoggerInterface $logger = null): Client
{
$config['hosts'] = [$this->_getHost() . ':' . $this->_getPort()];

$config = \array_merge($config, $params);
$config = $params ?: [$this->_getHost() . ':' . $this->_getPort()];

return new Client($config, $logger);
}
Expand Down

0 comments on commit 119af59

Please sign in to comment.