Skip to content
Snippets Groups Projects
Unverified Commit 9127731c authored by Joas Schilling's avatar Joas Schilling
Browse files

parse_url returns null in case a parameter is not found

parent 1f42a8b5
No related branches found
No related tags found
No related merge requests found
...@@ -158,7 +158,7 @@ class Client implements IClient { ...@@ -158,7 +158,7 @@ class Client implements IClient {
} }
$host = parse_url($uri, PHP_URL_HOST); $host = parse_url($uri, PHP_URL_HOST);
if ($host === false) { if ($host === false || $host === null) {
$this->logger->warning("Could not detect any host in $uri"); $this->logger->warning("Could not detect any host in $uri");
throw new LocalServerException('Could not detect any host'); throw new LocalServerException('Could not detect any host');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment