Skip to content

Commit f3c86a6

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: [Security][Tests] Update functional tests to better reflect end-user scenarios [HttpClient] Fix deprecation on PHP 8.3
2 parents aa6281d + 63d93fd commit f3c86a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

NativeHttpClient.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,11 @@ private static function createRedirectResolver(array $options, string $host, str
404404
$redirectHeaders['no_auth'] = array_filter($redirectHeaders['no_auth'], $filterContentHeaders);
405405
$redirectHeaders['with_auth'] = array_filter($redirectHeaders['with_auth'], $filterContentHeaders);
406406

407-
stream_context_set_option($context, ['http' => $options]);
407+
if (\PHP_VERSION_ID >= 80300) {
408+
stream_context_set_options($context, ['http' => $options]);
409+
} else {
410+
stream_context_set_option($context, ['http' => $options]);
411+
}
408412
}
409413
}
410414

0 commit comments

Comments
 (0)