rkljw 6 dagar sedan
förälder
incheckning
c4426bd18e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Controller/LoginController.php

+ 1 - 1
app/Controller/LoginController.php

@@ -583,7 +583,7 @@ class LoginController extends AbstractController
             foreach ($cookies as $name => $value) {
                 if($name){
                     $expire = time() - 3600; // 设置过期时间为过去的时间
-                    $cookie = new Cookie($name, '', $expire, '/');
+                    $cookie = new Cookie((string)$name, '', $expire, '/');
                     $this->response = $this->response->withCookie($cookie);
                 }