diff --git a/src/Network/Http.php b/src/Network/Http.php index 693365aa..62dea45f 100644 --- a/src/Network/Http.php +++ b/src/Network/Http.php @@ -462,7 +462,7 @@ public function json(mixed $payload): self /** * Add a data to the request. */ - public function data(array|string $key, string $value = null): self + public function data(array|string $key, array|string $value = null): self { if (is_array($key)) { foreach ($key as $_key => $_value) {