File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
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
@@ -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 /**
You can’t perform that action at this time.
0 commit comments