Skip to content

Commit e21c334

Browse files
committed
minor symfony#14238 toArray method throw exception too (ybenhssaien)
This PR was submitted for the 5.1 branch but it was merged into the 4.4 branch instead. Discussion ---------- toArray method throw exception too <!-- 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 `master` for features of unreleased versions). --> Commits ------- 7d88545 toArray method throw exception too
2 parents 5717ed7 + 7d88545 commit e21c334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_client.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ Handling Exceptions
896896

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

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

0 commit comments

Comments
 (0)