[HttpClient] fix Psr18Client when allow_url_fopen=0
This commit is contained in:
parent
52ca881776
commit
974516133a
@ -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__));
|
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.');
|
throw new \RuntimeException(error_get_last()['message'] ?? 'Registering the "symfony" stream wrapper failed.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user