Skip to content

Commit b378981

Browse files
committed
ensure string cast
1 parent 7ab5316 commit b378981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Handler/Logging.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private function collectErrorExceptionExtraData(array $collectedExceptionData, R
171171
} else {
172172
Assert::isInstanceOf($request, HttpRequest::class);
173173
$uri = $request->getUri();
174-
$uri->setHost(strtolower($uri->getHost()));
174+
$uri->setHost(strtolower((string) $uri->getHost()));
175175
$serverUrl = $uri->getScheme() . '://' . $uri->getHost();
176176
$url = $uri->toString();
177177
}

0 commit comments

Comments
 (0)