From 6d64f8f9a34a85d5981c157b279fc78d9cf19a73 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Wed, 21 Aug 2024 12:44:10 -0400 Subject: [PATCH] Remove types in handle to unify middleware convention --- src/Http/Middleware/AuthenticateSession.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Http/Middleware/AuthenticateSession.php b/src/Http/Middleware/AuthenticateSession.php index 1fa6748..9da0bcf 100644 --- a/src/Http/Middleware/AuthenticateSession.php +++ b/src/Http/Middleware/AuthenticateSession.php @@ -33,12 +33,13 @@ public function __construct(AuthFactory $auth) /** * Handle an incoming request. * + * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next * @return \Illuminate\Http\Response * * @throws \Illuminate\Auth\AuthenticationException */ - public function handle(Request $request, Closure $next) + public function handle($request, $next) { if (! $request->hasSession() || ! $request->user()) { return $next($request); @@ -93,7 +94,7 @@ protected function getFirstGuardWithUser(Collection $guards) * @param string $guard * @return void */ - protected function storePasswordHashInSession($request, string $guard) + protected function storePasswordHashInSession($request, $guard) { $request->session()->put([ "password_hash_{$guard}" => $this->auth->guard($guard)->user()->getAuthPassword(),