Skip to content

Commit 7ececdc

Browse files
committed
BUGFIX: Accept non-int as port, cast internally
Fixes #91
1 parent 6fb1f14 commit 7ececdc

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)