浏览代码

Fix phpstan issues

Bubka 8 月之前
父节点
当前提交
5ddd21fb4d
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1 1
      app/Http/Middleware/ForceLogout.php
  2. 2 1
      phpstan.neon

+ 1 - 1
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);

+ 2 - 1
phpstan.neon

@@ -11,4 +11,5 @@ parameters:
         analyse:
             - app/Protobuf/*
     ignoreErrors:
-    checkMissingIterableValueType: false
+        -
+            identifier: missingType.iterableValue