Skip to content

Commit d07a14b

Browse files
Merge pull request #92 from kdambekalns/bugfix/setport-type
BUGFIX: Accept non-int as port, cast internally
2 parents 6d51717 + 7ececdc commit d07a14b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Classes/Domain/Model/Client/ClientConfiguration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ public function getPort(): int
7979
}
8080

8181
/**
82-
* @param int $port
82+
* @param mixed $port Cast to int internally
8383
* @return void
8484
*/
85-
public function setPort(int $port): void
85+
public function setPort($port): void
8686
{
87-
$this->port = $port;
87+
$this->port = (int)$port;
8888
}
8989

9090
/**

0 commit comments

Comments
 (0)