Skip to content

Commit 41a502c

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: toArray method throw exception too
2 parents a8c12f4 + e21c334 commit 41a502c

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
@@ -891,7 +891,7 @@ Handling Exceptions
891891

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

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

0 commit comments

Comments
 (0)