Skip to content

Commit

Permalink
[11.x] Update Uri withoutQuery method to accept string or array inp…
Browse files Browse the repository at this point in the history
…ut (#53973)

* Update Uri `withoutQuery` function to accept string or array input

* Update Uri.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
1weiho and taylorotwell authored Dec 19, 2024
1 parent ec13158 commit fe5d94e
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(array|string $keys): static
{
return $this->replaceQuery(Arr::except($this->query()->all(), $keys));
}
Expand Down

0 comments on commit fe5d94e

Please sign in to comment.