diff --git a/src/Illuminate/Testing/TestResponse.php b/src/Illuminate/Testing/TestResponse.php index 93e4d2c023e9..0c9da0b190b8 100644 --- a/src/Illuminate/Testing/TestResponse.php +++ b/src/Illuminate/Testing/TestResponse.php @@ -217,7 +217,7 @@ public function assertRedirectContains($uri) /** * Assert whether the response is redirecting to a given route. * - * @param string $name + * @param \BackedEnum|string $name * @param mixed $parameters * @return $this */ @@ -238,7 +238,7 @@ public function assertRedirectToRoute($name, $parameters = []) /** * Assert whether the response is redirecting to a given signed route. * - * @param string|null $name + * @param \BackedEnum|string|null $name * @param mixed $parameters * @param bool $absolute * @return $this