From 2f1cf3e337d493b6a758b7a675d5ce59544cb2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E5=AD=90=E4=B8=89=E6=9C=89?= <9710@163.com> Date: Thu, 14 Jan 2021 12:29:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3php=E5=A4=A7=E4=BA=8E7.3?= =?UTF-8?q?=E6=97=B6setcookie=E4=B8=80=E7=82=B9=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/think/Cookie.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/think/Cookie.php b/src/think/Cookie.php index 6eb85b61..c64b3ff7 100644 --- a/src/think/Cookie.php +++ b/src/think/Cookie.php @@ -215,7 +215,7 @@ class Cookie { if (version_compare(PHP_VERSION, '7.3.0', '>=')) { setcookie($name, $value, [ - 'expires' => $expire, + 'expire' => $expire, 'path' => $path, 'domain' => $domain, 'secure' => $secure, -- Gitee