Skip to content

Commit

Permalink
Adopt Laravel type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift committed Apr 21, 2024
1 parent e9157c0 commit 56946d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Middleware/CasAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace App\Http\Middleware;

use Symfony\Component\HttpFoundation\Response;
use App\Models\User;
use Closure;
use Illuminate\Contracts\Auth\Guard;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 56946d3

Please sign in to comment.