Skip to content

Commit 83d9a37

Browse files
author
Kyra Farrow
committed
[HttpClient] Minor fixes
1 parent e6d1494 commit 83d9a37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Response/MockResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class MockResponse implements ResponseInterface
3737

3838
/**
3939
* @param string|string[]|iterable $body The response body as a string or an iterable of strings,
40-
* yielding an empty string simulates a timeout,
40+
* yielding an empty string simulates an idle timeout,
4141
* exceptions are turned to TransportException
4242
*
4343
* @see ResponseInterface::getInfo() for possible info, e.g. "response_headers"
@@ -277,7 +277,7 @@ private static function readResponse(self $response, array $options, ResponseInt
277277
if (!\is_string($body)) {
278278
foreach ($body as $chunk) {
279279
if ('' === $chunk = (string) $chunk) {
280-
// simulate a timeout
280+
// simulate an idle timeout
281281
$response->body[] = new ErrorChunk($offset);
282282
} else {
283283
$response->body[] = $chunk;

0 commit comments

Comments
 (0)