@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @param bool $delay default to true, can be false to speed up tests |
| 38 | 38 | * |
| 39 | - * @return callable |
|
| 39 | + * @return \Closure |
|
| 40 | 40 | */ |
| 41 | 41 | public function retry( $delay = true ) { |
| 42 | 42 | if ( $delay ) { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * Returns a method that takes the number of retries and returns the number of miliseconds |
| 51 | 51 | * to wait |
| 52 | 52 | * |
| 53 | - * @return callable |
|
| 53 | + * @return \Closure |
|
| 54 | 54 | */ |
| 55 | 55 | private function getRetryDelay() { |
| 56 | 56 | return function( $numberOfRetries, Response $response = null ) { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | /** |
| 78 | - * @return callable |
|
| 78 | + * @return \Closure |
|
| 79 | 79 | */ |
| 80 | 80 | private function newRetryDecider() { |
| 81 | 81 | return function ( |