Skip to content

Commit 2f16014

Browse files
committed
#139 Add two new types of authentication
1 parent e8febdf commit 2f16014

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Transport/Http.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,16 @@ class Http
9999
* @param string $password
100100
* @param int $authMethod
101101
*/
102-
public function __construct($host, $port, $username, $password, int $authMethod = null)
102+
public function __construct($host, $port, $username, $password, $authMethod = null)
103103
{
104104
$this->setHost($host, $port);
105105

106106
$this->_username = $username;
107107
$this->_password = $password;
108-
$this->_authMethod = $authMethod;
108+
if ($authMethod) {
109+
$this->_authMethod = $authMethod;
110+
}
111+
109112
$this->_settings = new Settings($this);
110113

111114
$this->setCurler();

0 commit comments

Comments
 (0)