@@ -32,14 +32,14 @@ |
||
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | - * @return callable |
|
| 35 | + * @return \Closure |
|
| 36 | 36 | */ |
| 37 | 37 | public function retry() { |
| 38 | 38 | return Middleware::retry( $this->newRetryDecider() ); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @return callable |
|
| 42 | + * @return \Closure |
|
| 43 | 43 | */ |
| 44 | 44 | private function newRetryDecider() { |
| 45 | 45 | return function ( |
@@ -3,14 +3,10 @@ |
||
| 3 | 3 | namespace Mediawiki\Api; |
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Client; |
| 6 | -use GuzzleHttp\Exception\ConnectException; |
|
| 7 | 6 | use GuzzleHttp\Exception\RequestException; |
| 8 | 7 | use GuzzleHttp\Handler\CurlHandler; |
| 9 | 8 | use GuzzleHttp\HandlerStack; |
| 10 | -use GuzzleHttp\Middleware; |
|
| 11 | 9 | use GuzzleHttp\Promise\PromiseInterface; |
| 12 | -use GuzzleHttp\Psr7\Request as Psr7Request; |
|
| 13 | -use GuzzleHttp\Psr7\Response as Psr7Response; |
|
| 14 | 10 | use InvalidArgumentException; |
| 15 | 11 | use Mediawiki\Api\Guzzle\MiddlewareFactory; |
| 16 | 12 | use Psr\Http\Message\ResponseInterface; |