From d769ba0aaa73ef23ad43e0bac408b92b33f29752 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Fri, 19 Jul 2019 18:09:58 +0800 Subject: [PATCH] add clear --- wx/Config.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wx/Config.php b/wx/Config.php index 8da54d5..05dd8cc 100644 --- a/wx/Config.php +++ b/wx/Config.php @@ -403,6 +403,9 @@ class Config */ public function setConfigs(array $configs) { + if (empty($configs)) { + return $this; + } foreach ($configs as $key => $val) { if (empty($val) || is_array($val)) { continue;