Skip to content

Commit

Permalink
Update Uri withoutQuery function to accept string or array input
Browse files Browse the repository at this point in the history
  • Loading branch information
1weiho authored Dec 19, 2024
1 parent 7d0a3d3 commit a8c4166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function pushOntoQuery(string $key, mixed $value): static
/**
* Remove the given query parameters from the URI.
*/
public function withoutQuery(array $keys): static
public function withoutQuery(string|array $keys): static
{
return $this->replaceQuery(Arr::except($this->query()->all(), $keys));
}
Expand Down

0 comments on commit a8c4166

Please sign in to comment.