diff --git a/src/Appwrite/DSN/DSN.php b/src/Appwrite/DSN/DSN.php index 11a25d5b18..f886d40211 100644 --- a/src/Appwrite/DSN/DSN.php +++ b/src/Appwrite/DSN/DSN.php @@ -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; } /**