Skip to content

Commit

Permalink
Update DSN.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux authored Nov 2, 2023
1 parent b27de85 commit 95c92d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DSN/DSN.php
Original file line number Diff line number Diff line change
Expand Up @@ -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($parts['path'], '/') : '';
$this->path = isset($parts['path']) ? ltrim((string)$parts['path'], '/') : '';
$this->query = $parts['query'] ?? null;
}

Expand Down

0 comments on commit 95c92d3

Please sign in to comment.