Skip to content

Commit

Permalink
set port default value
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-ivona committed Jan 9, 2022
1 parent a4ed4b7 commit 3d4536a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ssh.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Ssh
private string|null $key;
private string|null $password;
private string $host;
private string $port;
private int $port = 22;
private string $username;
private SSH2 $client;

Expand All @@ -38,7 +38,7 @@ public function host(string $host): Ssh
return $this;
}

public function port(string $port): Ssh
public function port(int $port): Ssh
{
$this->port = $port;

Expand Down

0 comments on commit 3d4536a

Please sign in to comment.