Skip to content

Commit

Permalink
Merge pull request #92 from kdambekalns/bugfix/setport-type
Browse files Browse the repository at this point in the history
BUGFIX: Accept non-int as port, cast internally
  • Loading branch information
daniellienert committed Jan 7, 2021
2 parents 6d51717 + 7ececdc commit d07a14b
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 d07a14b

Please sign in to comment.