Skip to content

Commit eedb712

Browse files
committed
minor #16246 Correct spelling & grammar in 4.4 http_client.rst (gnito-org)
This PR was merged into the 4.4 branch. Discussion ---------- Correct spelling & grammar in 4.4 http_client.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 2a68a27 Correct spelling & grammar in 4.4 http_client.rst
2 parents a5ab3ab + 2a68a27 commit eedb712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_client.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ response sequentially instead of waiting for the entire response::
890890
``php://temp`` stream. You can control this behavior by using the ``buffer``
891891
option: set it to ``true``/``false`` to enable/disable buffering, or to a
892892
closure that should return the same based on the response headers it receives
893-
as argument.
893+
as an argument.
894894

895895
Canceling Responses
896896
~~~~~~~~~~~~~~~~~~~
@@ -1064,7 +1064,7 @@ method will yield a special chunk whose ``isTimeout()`` will return ``true``::
10641064

10651065
foreach ($client->stream($responses, 1.5) as $response => $chunk) {
10661066
if ($chunk->isTimeout()) {
1067-
// $response staled for more than 1.5 seconds
1067+
// $response stale for more than 1.5 seconds
10681068
}
10691069
}
10701070

0 commit comments

Comments
 (0)