Skip to content

Commit 41c51e3

Browse files
[11.x] Allow BackedEnum when using redirectToRoute in ResponseFactory (#53518)
1 parent a6a67f6 commit 41c51e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Contracts/Routing/ResponseFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function redirectTo($path, $status = 302, $headers = [], $secure = null);
112112
/**
113113
* Create a new redirect response to a named route.
114114
*
115-
* @param string $route
115+
* @param \BackedEnum|string $route
116116
* @param mixed $parameters
117117
* @param int $status
118118
* @param array $headers

src/Illuminate/Routing/ResponseFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function redirectTo($path, $status = 302, $headers = [], $secure = null)
238238
/**
239239
* Create a new redirect response to a named route.
240240
*
241-
* @param string $route
241+
* @param \BackedEnum|string $route
242242
* @param mixed $parameters
243243
* @param int $status
244244
* @param array $headers

0 commit comments

Comments
 (0)