diff --git a/src/Host/Host.php b/src/Host/Host.php index f4a476ea4..6055b5396 100644 --- a/src/Host/Host.php +++ b/src/Host/Host.php @@ -278,7 +278,7 @@ public function connectionOptions(): array } } if ($this->has('port')) { - $options = array_merge($options, ['-p', $this->getPort()]); + $options = array_merge($options, ['-p', (string) $this->getPort()]); } if ($this->has('config_file')) { $options = array_merge($options, ['-F', parse_home_dir($this->getConfigFile())]);