Skip to content

Commit 0544209

Browse files
Backport type fixes
1 parent 70f1842 commit 0544209

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CurlHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ private static function createRedirectResolver(array $options, string $host): \C
512512
};
513513
}
514514

515-
private function findConstantName($opt): ?string
515+
private function findConstantName(int $opt): ?string
516516
{
517517
$constants = array_filter(get_defined_constants(), static function ($v, $k) use ($opt) {
518518
return $v === $opt && 'C' === $k[0] && (0 === strpos($k, 'CURLOPT_') || 0 === strpos($k, 'CURLINFO_'));

Response/TraceableResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public static function stream(HttpClientInterface $client, iterable $responses,
202202
}
203203
}
204204

205-
private function checkStatusCode($code)
205+
private function checkStatusCode(int $code)
206206
{
207207
if (500 <= $code) {
208208
throw new ServerException($this);

ScopingHttpClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(HttpClientInterface $client, array $defaultOptionsBy
4343
}
4444
}
4545

46-
public static function forBaseUri(HttpClientInterface $client, string $baseUri, array $defaultOptions = [], $regexp = null): self
46+
public static function forBaseUri(HttpClientInterface $client, string $baseUri, array $defaultOptions = [], string $regexp = null): self
4747
{
4848
if (null === $regexp) {
4949
$regexp = preg_quote(implode('', self::resolveUrl(self::parseUrl('.'), self::parseUrl($baseUri))));

0 commit comments

Comments
 (0)