修正一些存在的警告错误

This commit is contained in:
thinkphp
2016-02-02 15:15:44 +08:00
parent 78718c7739
commit 8ec6835dca
12 changed files with 30 additions and 22 deletions

View File

@@ -21,7 +21,7 @@ class Trace
];
// 实例化并传入参数
public function __construct($config = [])
public function __construct(array $config = [])
{
$this->config['trace_file'] = THINK_PATH . 'tpl/page_trace.tpl';
$this->config = array_merge($this->config, $config);
@@ -33,7 +33,7 @@ class Trace
* @param array $log 日志信息
* @return void
*/
public function save($log = [])
public function save(array $log = [])
{
if (IS_AJAX || IS_CLI || IS_API) {
// ajax cli api方式下不输出