From 90c76cb33e73fd7f40f20f98e4b68dd4072da22e Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 21 Dec 2023 04:44:56 +0200 Subject: [PATCH] fix curl url --- src/Client.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 91dc190..93806bb 100644 --- a/src/Client.php +++ b/src/Client.php @@ -20,7 +20,12 @@ class Client string $password ) { - $this->_url = $this->_protocol . '://' . $this->_host . ':' . $this->_port; + $this->_url = sprintf( + '%s://%s:%s', + $protocol, + $host, + $port + ); $this->_curl = curl_init();