diff --git a/src/DSN/DSN.php b/src/DSN/DSN.php index 38a8a2b..0eb0ef2 100644 --- a/src/DSN/DSN.php +++ b/src/DSN/DSN.php @@ -64,7 +64,7 @@ public function __construct(string $dsn) $this->password = isset($parts['pass']) ? \urldecode($parts['pass']) : null; $this->host = $parts['host'] ?? ''; $this->port = $parts['port'] ?? null; - $this->path = isset($parts['path']) ? ltrim((string)$parts['path'], '/') : ''; + $this->path = isset($parts['path']) ? ltrim((string) $parts['path'], '/') : ''; $this->query = $parts['query'] ?? null; }