Skip to content

Commit

Permalink
[11.x] Allow BackedEnum when using redirectToRoute in ResponseFactory (
Browse files Browse the repository at this point in the history
  • Loading branch information
wietsewarendorff authored Nov 14, 2024
1 parent a6a67f6 commit 41c51e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Routing/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function redirectTo($path, $status = 302, $headers = [], $secure = null);
/**
* Create a new redirect response to a named route.
*
* @param string $route
* @param \BackedEnum|string $route
* @param mixed $parameters
* @param int $status
* @param array $headers
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public function redirectTo($path, $status = 302, $headers = [], $secure = null)
/**
* Create a new redirect response to a named route.
*
* @param string $route
* @param \BackedEnum|string $route
* @param mixed $parameters
* @param int $status
* @param array $headers
Expand Down

0 comments on commit 41c51e3

Please sign in to comment.