| @@ -124,7 +124,7 @@ discard block | ||
| 124 | 124 | * | 
| 125 | 125 | * @param RequestInterface $request | 
| 126 | 126 | * @param array $options | 
| 127 | - * @return callable | |
| 127 | + * @return \Closure | |
| 128 | 128 | */ | 
| 129 | 129 | protected function onFulfilled(RequestInterface $request, array $options) | 
| 130 | 130 |      { | 
| @@ -143,7 +143,7 @@ discard block | ||
| 143 | 143 | * | 
| 144 | 144 | * @param RequestInterface $request | 
| 145 | 145 | * @param array $options | 
| 146 | - * @return callable | |
| 146 | + * @return \Closure | |
| 147 | 147 | */ | 
| 148 | 148 | protected function onRejected(RequestInterface $request, array $options) | 
| 149 | 149 |      { | 
| @@ -191,7 +191,7 @@ discard block | ||
| 191 | 191 | * 2. The number of attempts made thus far for this request | 
| 192 | 192 | * | 
| 193 | 193 | * @param array $options | 
| 194 | - * @param ResponseInterface|null $response | |
| 194 | + * @param ResponseInterface $response | |
| 195 | 195 | * @return bool TRUE if the response should be retried, FALSE if not | 
| 196 | 196 | */ | 
| 197 | 197 | protected function shouldRetryHttpResponse(array $options, ResponseInterface $response) | 
| @@ -296,7 +296,7 @@ discard block | ||
| 296 | 296 | * The spec allows the header value to either be a number of seconds or a datetime. | 
| 297 | 297 | * | 
| 298 | 298 | * @param string $headerValue | 
| 299 | - * @return float|null The number of seconds to wait, or NULL if unsuccessful (invalid header) | |
| 299 | + * @return integer|null The number of seconds to wait, or NULL if unsuccessful (invalid header) | |
| 300 | 300 | */ | 
| 301 | 301 | protected function deriveTimeoutFromHeader($headerValue) | 
| 302 | 302 |      { |