Fixed DSN test
This commit is contained in:
parent
2e23721774
commit
bef62ddc71
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue