From 5ddd21fb4df37dbec84f6088a82f22eabd9aff30 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:13:24 +0100 Subject: [PATCH] Fix phpstan issues --- app/Http/Middleware/ForceLogout.php | 2 +- phpstan.neon | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Middleware/ForceLogout.php b/app/Http/Middleware/ForceLogout.php index fea4399e..dd6894ad 100644 --- a/app/Http/Middleware/ForceLogout.php +++ b/app/Http/Middleware/ForceLogout.php @@ -17,7 +17,7 @@ class ForceLogout public function handle($request, Closure $next, ...$guards) { if (Auth::user() != null) { - Auth::guard('web-guard')->logoutCurrentDevice(); + Auth::logoutCurrentDevice(); } return $next($request); diff --git a/phpstan.neon b/phpstan.neon index 7717c365..63188fe8 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -11,4 +11,5 @@ parameters: analyse: - app/Protobuf/* ignoreErrors: - checkMissingIterableValueType: false \ No newline at end of file + - + identifier: missingType.iterableValue \ No newline at end of file