Fixed DSN test

This commit is contained in:
Eldad Fux
2022-10-17 15:47:07 +03:00
parent 2e23721774
commit bef62ddc71
+2 -2
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;
}
/**