|
15 | 15 | use InvalidArgumentException; |
16 | 16 |
|
17 | 17 | /** |
18 | | - * @final This class is final and shouldn't be extended as it is likely to be marked final in a future relase. |
| 18 | + * @final This class is final and shouldn't be extended as it is likely to be marked final in a future release. |
19 | 19 | */ |
20 | 20 | class Browser |
21 | 21 | { |
@@ -302,7 +302,7 @@ public function delete($url, array $headers = array(), $contents = '') |
302 | 302 | * @param string $url URL for the request |
303 | 303 | * @param array $headers Additional request headers |
304 | 304 | * @param string|ReadableStreamInterface $body HTTP request body contents |
305 | | - * @return PromiseInterface<ResponseInterface,Exception> |
| 305 | + * @return PromiseInterface<ResponseInterface,\Exception> |
306 | 306 | */ |
307 | 307 | public function request($method, $url, array $headers = array(), $body = '') |
308 | 308 | { |
@@ -373,11 +373,11 @@ public function request($method, $url, array $headers = array(), $body = '') |
373 | 373 | * @param string $url URL for the request |
374 | 374 | * @param array $headers Additional request headers |
375 | 375 | * @param string|ReadableStreamInterface $body HTTP request body contents |
376 | | - * @return PromiseInterface<ResponseInterface,Exception> |
| 376 | + * @return PromiseInterface<ResponseInterface,\Exception> |
377 | 377 | */ |
378 | | - public function requestStreaming($method, $url, $headers = array(), $contents = '') |
| 378 | + public function requestStreaming($method, $url, $headers = array(), $body = '') |
379 | 379 | { |
380 | | - return $this->withOptions(array('streaming' => true))->requestMayBeStreaming($method, $url, $headers, $contents); |
| 380 | + return $this->withOptions(array('streaming' => true))->requestMayBeStreaming($method, $url, $headers, $body); |
381 | 381 | } |
382 | 382 |
|
383 | 383 | /** |
@@ -720,7 +720,7 @@ private function withOptions(array $options) |
720 | 720 | * @param string $url |
721 | 721 | * @param array $headers |
722 | 722 | * @param string|ReadableStreamInterface $body |
723 | | - * @return PromiseInterface<ResponseInterface,Exception> |
| 723 | + * @return PromiseInterface<ResponseInterface,\Exception> |
724 | 724 | */ |
725 | 725 | private function requestMayBeStreaming($method, $url, array $headers = array(), $body = '') |
726 | 726 | { |
|
0 commit comments