From 1001f8c3957d97cf9523c6a23b699348e852f812 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 16 Jun 2016 11:05:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Response=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Response.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Response.php b/library/think/Response.php index 2a2c7067..9dd67aa1 100644 --- a/library/think/Response.php +++ b/library/think/Response.php @@ -48,7 +48,7 @@ class Response * @param string $type 输出类型 * @param array $options 输出参数 */ - public function __construct($data = [], $type = '', $options = []) + public function __construct($data = '', $type = '', $options = []) { $this->data = $data; $this->type = empty($type) ? 'null' : strtolower($type); @@ -72,7 +72,7 @@ class Response * @param array $options 输出参数 * @return Response */ - public static function create($data = [], $type = '', $options = []) + public static function create($data = '', $type = '', $options = []) { $type = empty($type) ? 'null' : strtolower($type);