Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit a9551c5

Browse files
authored
explain in phpdoc that guzzle instance must not throw exceptions
1 parent b5fb2a3 commit a9551c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Client.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ final class Client implements HttpClient, HttpAsyncClient
2525
*/
2626
private $client;
2727

28+
/**
29+
* If you pass a Guzzle instance as $client, make sure to configure Guzzle to not
30+
* throw exceptions on HTTP error status codes, or this adapter will violate PSR-18.
31+
* See also self::buildClient at the bottom of this class.
32+
*/
2833
public function __construct(?ClientInterface $client = null)
2934
{
3035
if (!$client) {

0 commit comments

Comments
 (0)