@@ -356,9 +356,9 @@ immediately instead of waiting to receive the response::
356356 // getting the response headers waits until they arrive
357357 $contentType = $response->getHeaders()['content-type'][0];
358358
359- // trying to get the response contents will block the execution until
360- // the full response contents are received
361- $contents = $response->getContent();
359+ // trying to get the response content will block the execution until
360+ // the full response content is received
361+ $content = $response->getContent();
362362
363363This component also supports :ref: `streaming responses <http-client-streaming-responses >`
364364for full asynchronous applications.
@@ -833,7 +833,7 @@ following methods::
833833 // gets the response body as a string
834834 $content = $response->getContent();
835835
836- // casts the response JSON contents to a PHP array
836+ // casts the response JSON content to a PHP array
837837 $content = $response->toArray();
838838
839839 // casts the response content to a PHP stream resource
@@ -873,7 +873,7 @@ response sequentially instead of waiting for the entire response::
873873 throw new \Exception('...');
874874 }
875875
876- // get the response contents in chunk and save them in a file
876+ // get the response content in chunks and save them in a file
877877 // response chunks implement Symfony\Contracts\HttpClient\ChunkInterface
878878 $fileHandler = fopen('/ubuntu.iso', 'w');
879879 foreach ($client->stream($response) as $chunk) {
0 commit comments