Skip to content

Commit eeade40

Browse files
derrabusfabpot
authored andcommitted
Add types to constructors and private/final/internal methods (Batch I)
1 parent 980b268 commit eeade40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ protected function requestFromRequest(Request $request, $changeHistory = true)
710710
return $this->request($request->getMethod(), $request->getUri(), $request->getParameters(), $request->getFiles(), $request->getServer(), $request->getContent(), $changeHistory);
711711
}
712712

713-
private function updateServerFromUri(array $server, string $uri)
713+
private function updateServerFromUri(array $server, string $uri): array
714714
{
715715
$server['HTTP_HOST'] = $this->extractHost($uri);
716716
$scheme = parse_url($uri, PHP_URL_SCHEME);
@@ -720,7 +720,7 @@ private function updateServerFromUri(array $server, string $uri)
720720
return $server;
721721
}
722722

723-
private function extractHost(string $uri)
723+
private function extractHost(string $uri): ?string
724724
{
725725
$host = parse_url($uri, PHP_URL_HOST);
726726

0 commit comments

Comments
 (0)