Skip to content

Commit

Permalink
Fix parseUri function (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
psafarov authored and trowski committed Mar 26, 2019
1 parent 7d380c9 commit e90cda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function parseUri(string $uri): array {
);
}

if (empty($host) || empty($port)) {
if ($host === "" || $port === 0) {
throw new \Error(
"Invalid URI ({$uri}); host and port components required"
);
Expand Down

0 comments on commit e90cda8

Please sign in to comment.