Skip to content

Commit d856695

Browse files
committed
Template params can only have one argument
The fact that a promise can also be rejected with a Throwable and/or Exception is implied and there is no need to also define that here. Refs: reactphp/promise#223
1 parent b34bbed commit d856695

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Browser.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function delete($url, array $headers = array(), $body = '')
344344
* @param string $url URL for the request
345345
* @param array $headers Additional request headers
346346
* @param string|ReadableStreamInterface $body HTTP request body contents
347-
* @return PromiseInterface<ResponseInterface,\Exception>
347+
* @return PromiseInterface<ResponseInterface>
348348
*/
349349
public function request($method, $url, array $headers = array(), $body = '')
350350
{
@@ -417,7 +417,7 @@ public function request($method, $url, array $headers = array(), $body = '')
417417
* @param string $url URL for the request
418418
* @param array $headers Additional request headers
419419
* @param string|ReadableStreamInterface $body HTTP request body contents
420-
* @return PromiseInterface<ResponseInterface,\Exception>
420+
* @return PromiseInterface<ResponseInterface>
421421
*/
422422
public function requestStreaming($method, $url, $headers = array(), $body = '')
423423
{
@@ -828,7 +828,7 @@ private function withOptions(array $options)
828828
* @param string $url
829829
* @param array $headers
830830
* @param string|ReadableStreamInterface $body
831-
* @return PromiseInterface<ResponseInterface,\Exception>
831+
* @return PromiseInterface<ResponseInterface>
832832
*/
833833
private function requestMayBeStreaming($method, $url, array $headers = array(), $body = '')
834834
{

0 commit comments

Comments
 (0)