Skip to content

Commit

Permalink
Do not mutate underlying values on redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Feb 27, 2023
1 parent 864d2e5 commit 05a0f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/RedirectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __invoke(Request $request, UrlGenerator $url)

$parameters = $parameters->only(
$route->getCompiled()->getPathVariables()
)->toArray();
)->all();

$url = $url->toRoute($route, $parameters, false);

Expand Down

0 comments on commit 05a0f29

Please sign in to comment.