Skip to content

Commit 0cba3a2

Browse files
committed
fix: typing
1 parent 82a122c commit 0cba3a2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Client.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ class Client
1818
* @return PromiseInterface
1919
*/
2020
public function execute(
21-
string $requestMethod,
22-
string $url,
23-
array $headers = [],
24-
$body = ''
21+
string $requestMethod,
22+
string $url,
23+
array $headers = [],
24+
ReadableStreamInterface|string $body = ''
2525
): PromiseInterface
2626
{
2727
return $this->prepareQueryable(
@@ -70,7 +70,7 @@ public static function get(string $url, array $headers = []): PromiseInterface
7070
* @param ReadableStreamInterface|string $body
7171
* @return PromiseInterface
7272
*/
73-
public static function post(string $url, array $headers = [], $body = ''): PromiseInterface
73+
public static function post(string $url, array $headers = [], ReadableStreamInterface|string $body = ''): PromiseInterface
7474
{
7575
return (new static())->execute('POST', $url, $headers, $body);
7676
}
@@ -95,7 +95,7 @@ public static function head(string $url, array $headers = []): PromiseInterface
9595
* @param ReadableStreamInterface|string $body
9696
* @return PromiseInterface
9797
*/
98-
public static function patch(string $url, array $headers = [], $body = ''): PromiseInterface
98+
public static function patch(string $url, array $headers = [], ReadableStreamInterface|string $body = ''): PromiseInterface
9999
{
100100
return (new static())->execute('PATCH', $url, $headers, $body);
101101
}
@@ -108,7 +108,7 @@ public static function patch(string $url, array $headers = [], $body = ''): Prom
108108
* @param ReadableStreamInterface|string $body
109109
* @return PromiseInterface
110110
*/
111-
public static function put(string $url, array $headers = [], $body = ''): PromiseInterface
111+
public static function put(string $url, array $headers = [], ReadableStreamInterface|string $body = ''): PromiseInterface
112112
{
113113
return (new static())->execute('PUT', $url, $headers, $body);
114114
}

0 commit comments

Comments
 (0)