Skip to content

Commit

Permalink
[11.x] Allow BackedEnum when asserting redirect-routes (#53498)
Browse files Browse the repository at this point in the history
  • Loading branch information
wietsewarendorff authored Nov 14, 2024
1 parent a20ca20 commit c8a09be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
Expand Down

0 comments on commit c8a09be

Please sign in to comment.