Skip to content

Commit

Permalink
Remove types in handle to unify middleware convention
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman authored Aug 21, 2024
1 parent 3d6df24 commit 6d64f8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Http/Middleware/AuthenticateSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 6d64f8f

Please sign in to comment.