1 | <?php |
||
11 | final class HttpClientException extends \RuntimeException implements Exception |
||
12 | { |
||
13 | /** |
||
14 | * @var ResponseInterface|null |
||
15 | */ |
||
16 | private $response; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $responseBody; |
||
22 | |||
23 | /** |
||
24 | * @param string $message |
||
25 | * @param int $code |
||
26 | * @param ResponseInterface|null $response |
||
27 | */ |
||
28 | public function __construct($message, $code, ResponseInterface $response = null) |
||
46 | |||
47 | public static function badRequest(ResponseInterface $response = null) |
||
51 | |||
52 | public static function unauthorized(ResponseInterface $response = null) |
||
56 | |||
57 | public static function requestFailed(ResponseInterface $response = null) |
||
61 | |||
62 | public static function notFound(ResponseInterface $response = null) |
||
66 | |||
67 | /** |
||
68 | * @return ResponseInterface |
||
69 | */ |
||
70 | public function getResponse() |
||
74 | |||
75 | /** |
||
76 | * @return array |
||
77 | */ |
||
78 | public function getResponseBody() |
||
82 | } |
||
83 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..