@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * |
40 | 40 | * @param bool $delay default to true, can be false to speed up tests |
41 | 41 | * |
42 | - * @return callable |
|
42 | + * @return \Closure |
|
43 | 43 | */ |
44 | 44 | public function retry( $delay = true ) { |
45 | 45 | if ( $delay ) { |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * Returns a method that takes the number of retries and returns the number of miliseconds |
54 | 54 | * to wait |
55 | 55 | * |
56 | - * @return callable |
|
56 | + * @return \Closure |
|
57 | 57 | */ |
58 | 58 | private function getRetryDelay() { |
59 | 59 | return function ( $numberOfRetries, Response $response = null ) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * @return callable |
|
81 | + * @return \Closure |
|
82 | 82 | */ |
83 | 83 | private function newRetryDecider() { |
84 | 84 | return function ( |