From 30bb42476f6b05e9f8c8e72c0f0dcfebae58e320 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sat, 23 Jan 2016 13:18:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Log.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Log.php b/library/think/Log.php index 16853dab..cf80a266 100644 --- a/library/think/Log.php +++ b/library/think/Log.php @@ -30,7 +30,7 @@ class Log protected static $alarm = null; // 日志初始化 - public static function init(array $config = []) + public static function init($config = []) { $type = isset($config['type']) ? $config['type'] : 'File'; $class = (!empty($config['namespace']) ? $config['namespace'] : '\\think\\log\\driver\\') . ucwords($type); @@ -39,7 +39,7 @@ class Log } // 通知初始化 - public static function alarm(array $config = []) + public static function alarm($config = []) { $type = isset($config['type']) ? $config['type'] : 'Email'; $class = (!empty($config['namespace']) ? $config['namespace'] : '\\think\\log\\alarm\\') . ucwords($type);