| @@ -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 | private 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 | private function onRejected(RequestInterface $request, array $options) | 
| 149 | 149 |      { | 
| @@ -195,7 +195,7 @@ discard block | ||
| 195 | 195 | * 2. The number of attempts made thus far for this request | 
| 196 | 196 | * | 
| 197 | 197 | * @param array $options | 
| 198 | - * @param ResponseInterface|null $response | |
| 198 | + * @param ResponseInterface $response | |
| 199 | 199 | * @return bool TRUE if the response should be retried, FALSE if not | 
| 200 | 200 | */ | 
| 201 | 201 | private function shouldRetryHttpResponse(array $options, ResponseInterface $response) | 
| @@ -301,7 +301,7 @@ discard block | ||
| 301 | 301 | * The spec allows the header value to either be a number of seconds or a datetime. | 
| 302 | 302 | * | 
| 303 | 303 | * @param string $headerValue | 
| 304 | - * @return float|null The number of seconds to wait, or NULL if unsuccessful (invalid header) | |
| 304 | + * @return integer|null The number of seconds to wait, or NULL if unsuccessful (invalid header) | |
| 305 | 305 | */ | 
| 306 | 306 | private function deriveTimeoutFromHeader($headerValue) | 
| 307 | 307 |      { |