Skip to content

Commit b6d8b8e

Browse files
authored
Merge pull request smi2#212 from cybercog/fix-conenct-port-type
Fix connect port type
2 parents 5ae1bdd + 515178e commit b6d8b8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Client
5252
/** @var string */
5353
private $connectHost;
5454

55-
/** @var string */
55+
/** @var int */
5656
private $connectPort;
5757

5858
/** @var int */
@@ -97,7 +97,7 @@ public function __construct(array $connectParams, array $settings = [])
9797

9898
$this->connectUsername = $connectParams['username'];
9999
$this->connectPassword = $connectParams['password'];
100-
$this->connectPort = $connectParams['port'];
100+
$this->connectPort = intval($connectParams['port']);
101101
$this->connectHost = $connectParams['host'];
102102

103103
// init transport class
@@ -245,7 +245,7 @@ public function getConnectPassword(): string
245245
*/
246246
public function getConnectPort(): string
247247
{
248-
return $this->connectPort;
248+
return strval($this->connectPort);
249249
}
250250

251251
/**

0 commit comments

Comments
 (0)