Skip to content

Commit 16cadc3

Browse files
committed
Fix connection port type
1 parent a328b8a commit 16cadc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Client.php

Lines changed: 4 additions & 4 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
@@ -241,9 +241,9 @@ public function getConnectPassword(): string
241241
}
242242

243243
/**
244-
* @return string
244+
* @return int
245245
*/
246-
public function getConnectPort(): string
246+
public function getConnectPort(): int
247247
{
248248
return $this->connectPort;
249249
}

0 commit comments

Comments
 (0)