mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-03 05:41:38 +08:00
数组定义用法统一
This commit is contained in:
@@ -52,7 +52,7 @@ class Cookie {
|
||||
// 参数设置(会覆盖黙认设置)
|
||||
if (!is_null($option)) {
|
||||
if (is_numeric($option))
|
||||
$option = array('expire' => $option);
|
||||
$option = ['expire' => $option];
|
||||
elseif (is_string($option))
|
||||
parse_str($option, $option);
|
||||
$config = array_merge(self::$config, array_change_key_case($option));
|
||||
|
||||
Reference in New Issue
Block a user