Skip to content

Commit 8dc1e4e

Browse files
authored
Fix some typos, a mixed up param name and add forgotten namespace backslash
1 parent badb0a8 commit 8dc1e4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Browser.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use InvalidArgumentException;
1616

1717
/**
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.
1919
*/
2020
class Browser
2121
{
@@ -302,7 +302,7 @@ public function delete($url, array $headers = array(), $contents = '')
302302
* @param string $url URL for the request
303303
* @param array $headers Additional request headers
304304
* @param string|ReadableStreamInterface $body HTTP request body contents
305-
* @return PromiseInterface<ResponseInterface,Exception>
305+
* @return PromiseInterface<ResponseInterface,\Exception>
306306
*/
307307
public function request($method, $url, array $headers = array(), $body = '')
308308
{
@@ -373,11 +373,11 @@ public function request($method, $url, array $headers = array(), $body = '')
373373
* @param string $url URL for the request
374374
* @param array $headers Additional request headers
375375
* @param string|ReadableStreamInterface $body HTTP request body contents
376-
* @return PromiseInterface<ResponseInterface,Exception>
376+
* @return PromiseInterface<ResponseInterface,\Exception>
377377
*/
378-
public function requestStreaming($method, $url, $headers = array(), $contents = '')
378+
public function requestStreaming($method, $url, $headers = array(), $body = '')
379379
{
380-
return $this->withOptions(array('streaming' => true))->requestMayBeStreaming($method, $url, $headers, $contents);
380+
return $this->withOptions(array('streaming' => true))->requestMayBeStreaming($method, $url, $headers, $body);
381381
}
382382

383383
/**
@@ -720,7 +720,7 @@ private function withOptions(array $options)
720720
* @param string $url
721721
* @param array $headers
722722
* @param string|ReadableStreamInterface $body
723-
* @return PromiseInterface<ResponseInterface,Exception>
723+
* @return PromiseInterface<ResponseInterface,\Exception>
724724
*/
725725
private function requestMayBeStreaming($method, $url, array $headers = array(), $body = '')
726726
{

0 commit comments

Comments
 (0)