Skip to content

Commit

Permalink
[HttpClient] fix Psr18Client when allow_url_fopen=0
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 23, 2021
1 parent 534bac2 commit 78bd379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Response/StreamWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function createResource(ResponseInterface $response, HttpClientInt
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.');
}

Expand Down

0 comments on commit 78bd379

Please sign in to comment.