Skip to content

Commit

Permalink
Fix allowed types for value argument (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin authored Jan 15, 2024
1 parent b17d4d8 commit f4c61a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f4c61a9

Please sign in to comment.