1 | <?php |
||
8 | class Exception extends BaseException |
||
9 | { |
||
10 | /** |
||
11 | * Response body |
||
12 | * |
||
13 | * @var object |
||
14 | */ |
||
15 | protected $responseBody; |
||
16 | |||
17 | /** |
||
18 | * Creates local exception from http client exception, which attempts to |
||
19 | * include response body. |
||
20 | * |
||
21 | * @param ClientExceptionInterface $clientException |
||
22 | * |
||
23 | * @return Exception |
||
24 | */ |
||
25 | 8 | public static function fromClientException(ClientExceptionInterface $clientException) |
|
42 | |||
43 | /** |
||
44 | * Retrieves the response body property of exception. |
||
45 | * |
||
46 | * @return object |
||
47 | */ |
||
48 | 4 | public function getResponseBody() |
|
52 | |||
53 | /** |
||
54 | * Attempts to extract an http response message from the given client exception. |
||
55 | * |
||
56 | * @param ClientExceptionInterface $clientException |
||
57 | * |
||
58 | * @return \Psr\Http\Message\RequestInterface|null |
||
59 | */ |
||
60 | 8 | public static function getResponseFromClientException(ClientExceptionInterface $clientException) |
|
74 | |||
75 | /** |
||
76 | * Updates the response body property of exception. |
||
77 | * |
||
78 | * @param object |
||
79 | * |
||
80 | * @return Exception |
||
81 | */ |
||
82 | 8 | public function setResponseBody($responseBody) |
|
88 | } |
||
89 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.