File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments