@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * Get the last error returned by either the network transport, or by the API. |
| 94 | 94 | * If something didn't work, this should contain the string describing the problem. |
| 95 | - * @return array|false describing the error |
|
| 95 | + * @return string|false describing the error |
|
| 96 | 96 | */ |
| 97 | 97 | public function getLastError() |
| 98 | 98 | { |
@@ -251,6 +251,12 @@ discard block |
||
| 251 | 251 | return $formattedResponse; |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | + /** |
|
| 255 | + * @param string $http_verb |
|
| 256 | + * @param string $method |
|
| 257 | + * @param string $url |
|
| 258 | + * @param integer $timeout |
|
| 259 | + */ |
|
| 254 | 260 | private function prepareStateForRequest($http_verb, $method, $url, $timeout) |
| 255 | 261 | { |
| 256 | 262 | $this->last_error = ''; |