1 | <?php |
||
18 | final class HttpClientException extends \RuntimeException implements Exception |
||
19 | { |
||
20 | /** |
||
21 | * @var ResponseInterface|null |
||
22 | */ |
||
23 | private $response; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $responseBody; |
||
29 | |||
30 | /** |
||
31 | * @param string $message |
||
32 | * @param int $code |
||
33 | * @param ResponseInterface|null $response |
||
34 | */ |
||
35 | public function __construct($message, $code, ResponseInterface $response = null) |
||
49 | |||
50 | public static function badRequest(ResponseInterface $response = null) |
||
54 | |||
55 | public static function unauthorized(ResponseInterface $response = null) |
||
59 | |||
60 | public static function requestFailed(ResponseInterface $response = null) |
||
64 | |||
65 | public static function notFound(ResponseInterface $response = null) |
||
69 | |||
70 | /** |
||
71 | * @return ResponseInterface |
||
72 | */ |
||
73 | public function getResponse() |
||
77 | |||
78 | /** |
||
79 | * @return array |
||
80 | */ |
||
81 | public function getResponseBody() |
||
85 | } |
||
86 |
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..