1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Fixed DSN test

This commit is contained in:
Eldad Fux 2022-10-17 15:47:07 +03:00
parent 2e23721774
commit bef62ddc71

View file

@ -58,7 +58,7 @@ class DSN
$this->user = $parts['user'] ?? null;
$this->password = $parts['pass'] ?? null;
$this->host = $parts['host'] ?? null;
$this->port = (int)$parts['port'] ?? null;
$this->port = $parts['port'] ?? null;
$this->database = $parts['path'] ?? null;
$this->query = $parts['query'] ?? null;
}
@ -110,7 +110,7 @@ class DSN
*/
public function getPort(): ?int
{
return $this->port;
return (int)$this->port;
}
/**