From 56946d37751307452b244abd3be4b7c1a46ffaaa Mon Sep 17 00:00:00 2001 From: Shift Date: Sun, 21 Apr 2024 19:28:16 +0000 Subject: [PATCH] Adopt Laravel type hints --- app/Http/Middleware/CasAuthenticate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Middleware/CasAuthenticate.php b/app/Http/Middleware/CasAuthenticate.php index 1aa360a0..72f6ced2 100644 --- a/app/Http/Middleware/CasAuthenticate.php +++ b/app/Http/Middleware/CasAuthenticate.php @@ -4,6 +4,7 @@ namespace App\Http\Middleware; +use Symfony\Component\HttpFoundation\Response; use App\Models\User; use Closure; use Illuminate\Contracts\Auth\Guard; @@ -41,7 +42,7 @@ public function __construct(Guard $auth) * * @phan-suppress PhanPluginInconsistentReturnMethod */ - public function handle(Request $request, Closure $next) + public function handle(Request $request, Closure $next): Response { // Run the user update only if they don't have an active session if ($this->cas->isAuthenticated() && $request->user() === null) {