diff --git a/library/think/View.php b/library/think/View.php index ede7cd44..52aa9cd7 100644 --- a/library/think/View.php +++ b/library/think/View.php @@ -33,7 +33,7 @@ class View * @param array $engine 模板引擎参数 * @param array $replace 字符串替换参数 */ - public function __construct($engine = [], array $replace = []) + public function __construct($engine = [], $replace = []) { // 初始化模板引擎 $this->engine((array) $engine);