diff --git a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php index c24799df0b45..8ecc6a784e1c 100644 --- a/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php +++ b/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php @@ -2,6 +2,7 @@ namespace Illuminate\Foundation\Testing\Concerns; +use BackedEnum; use Illuminate\Contracts\Http\Kernel as HttpKernel; use Illuminate\Cookie\CookieValuePrefix; use Illuminate\Http\Request; @@ -331,11 +332,11 @@ public function from(string $url) /** * Set the referer header and previous URL session value from a given route in order to simulate a previous request. * - * @param string $name + * @param \BackedEnum|string $name * @param mixed $parameters * @return $this */ - public function fromRoute(string $name, $parameters = []) + public function fromRoute(BackedEnum|string $name, $parameters = []) { return $this->from($this->app['url']->route($name, $parameters)); }