[HttpClient] fix Psr18Client when allow_url_fopen=0

This commit is contained in:
Nicolas Grekas 2021-06-23 22:56:48 +02:00
parent 52ca881776
commit 974516133a
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class StreamWrapper
throw new \InvalidArgumentException(sprintf('Providing a client to "%s()" is required when the response doesn\'t have any "stream()" method.', __CLASS__));
}
if (false === stream_wrapper_register('symfony', __CLASS__, \STREAM_IS_URL)) {
if (false === stream_wrapper_register('symfony', __CLASS__)) {
throw new \RuntimeException(error_get_last()['message'] ?? 'Registering the "symfony" stream wrapper failed.');
}