From c01a108a5263f6d726dc9fa98a778b2cc8ac9f9d Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 27 Dec 2017 18:32:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BError=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Error.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/think/Error.php b/library/think/Error.php index 69ee45c3..5110854a 100644 --- a/library/think/Error.php +++ b/library/think/Error.php @@ -60,13 +60,12 @@ class Error * @param integer $errstr 详细错误信息 * @param string $errfile 出错的文件 * @param integer $errline 出错行号 - * @param array $errcontext 出错上下文 * @return void * @throws ErrorException */ - public static function appError($errno, $errstr, $errfile = '', $errline = 0, $errcontext = []) + public static function appError($errno, $errstr, $errfile = '', $errline = 0) { - $exception = new ErrorException($errno, $errstr, $errfile, $errline, $errcontext); + $exception = new ErrorException($errno, $errstr, $errfile, $errline); // 符合异常处理的则将错误信息托管至 think\exception\ErrorException if (error_reporting() & $errno) {