Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small code fixes #11

Merged
merged 1 commit into from
Dec 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Parser/Bags/PathBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public function buildPathComponents(string $path): void
}

/**
* @return null
* @return string
*/
public function original()
public function original(): ?string
{
return $this->pathString;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Parser/Bags/QueryBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public function buildQueryComponents(string $query): void
}

/**
* @return string
* @return null|string
*/
public function original()
public function original(): ?string
{
return $this->queryString;
}
Expand Down
1 change: 0 additions & 1 deletion src/Parser/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public static function from(string $url): self
private function parseUrl(string $url): void
{
$parsedUrl = parse_url($url);
print_r($parsedUrl);

$this->schema = $parsedUrl['scheme'] ?? null;
$this->host = $parsedUrl['host'] ?? null;
Expand Down