Skip to content

Commit 50b4991

Browse files
committed
Merge branch '5.1'
* 5.1: toArray method throw exception too
2 parents 9f47f94 + 41a502c commit 50b4991

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ Handling Exceptions
923923

924924
When the HTTP status code of the response is in the 300-599 range (i.e. 3xx,
925925
4xx or 5xx) your code is expected to handle it. If you don't do that, the
926-
``getHeaders()`` and ``getContent()`` methods throw an appropriate exception, all of
926+
``getHeaders()``, ``getContent()`` and ``toArray()`` methods throw an appropriate exception, all of
927927
which implement the :class:`Symfony\\Contracts\\HttpClient\\Exception\\HttpExceptionInterface`::
928928

929929
// the response of this request will be a 403 HTTP error

0 commit comments

Comments
 (0)