From 38bc9119eb369eed4d32adbc4132788177712b15 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 2 Oct 2020 08:31:13 -0500 Subject: [PATCH] type hint the middleware Request (#5438) stemming from https://github.com/laravel/framework/pull/34224 --- app/Http/Middleware/RedirectIfAuthenticated.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Middleware/RedirectIfAuthenticated.php b/app/Http/Middleware/RedirectIfAuthenticated.php index fead421a4..362b48b0d 100644 --- a/app/Http/Middleware/RedirectIfAuthenticated.php +++ b/app/Http/Middleware/RedirectIfAuthenticated.php @@ -4,6 +4,7 @@ use App\Providers\RouteServiceProvider; use Closure; +use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated @@ -16,7 +17,7 @@ class RedirectIfAuthenticated * @param string|null ...$guards * @return mixed */ - public function handle($request, Closure $next, ...$guards) + public function handle(Request $request, Closure $next, ...$guards) { $guards = empty($guards) ? [null] : $guards;