Skip to content

Commit

Permalink
ensure string cast
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 29, 2019
1 parent 7ab5316 commit b378981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handler/Logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private function collectErrorExceptionExtraData(array $collectedExceptionData, R
} else {
Assert::isInstanceOf($request, HttpRequest::class);
$uri = $request->getUri();
$uri->setHost(strtolower($uri->getHost()));
$uri->setHost(strtolower((string) $uri->getHost()));
$serverUrl = $uri->getScheme() . '://' . $uri->getHost();
$url = $uri->toString();
}
Expand Down

0 comments on commit b378981

Please sign in to comment.