Skip to content

Commit fe5d94e

Browse files
1weihotaylorotwell
andauthored
[11.x] Update Uri withoutQuery method to accept string or array input (#53973)
* Update Uri `withoutQuery` function to accept string or array input * Update Uri.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent ec13158 commit fe5d94e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Support/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function pushOntoQuery(string $key, mixed $value): static
274274
/**
275275
* Remove the given query parameters from the URI.
276276
*/
277-
public function withoutQuery(array $keys): static
277+
public function withoutQuery(array|string $keys): static
278278
{
279279
return $this->replaceQuery(Arr::except($this->query()->all(), $keys));
280280
}

0 commit comments

Comments
 (0)