Skip to content

Commit

Permalink
BUGFIX: Accept non-int as port, cast internally
Browse files Browse the repository at this point in the history
Fixes #91
  • Loading branch information
kdambekalns committed Jan 6, 2021
1 parent 6fb1f14 commit 7ececdc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Domain/Model/Client/ClientConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ public function getPort(): int
}

/**
* @param int $port
* @param mixed $port Cast to int internally
* @return void
*/
public function setPort(int $port): void
public function setPort($port): void
{
$this->port = $port;
$this->port = (int)$port;
}

/**
Expand Down

0 comments on commit 7ececdc

Please sign in to comment.