日志驱动调整

This commit is contained in:
thinkphp
2016-02-02 19:04:58 +08:00
parent 3aaa4e8140
commit 8ed7c91b29

View File

@@ -22,9 +22,11 @@ class File
]; ];
// 实例化并传入参数 // 实例化并传入参数
public function __construct(array $config = []) public function __construct($config = [])
{ {
$this->config = array_merge($this->config, $config); if (is_array($config)) {
$this->config = array_merge($this->config, $config);
}
} }
/** /**