mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
支持配置批量注册根命名空间
This commit is contained in:
@@ -19,7 +19,7 @@ use think\Exception;
|
||||
* 除开从 think\Exception 继承的功能
|
||||
* 其他和PHP系统\ErrorException功能基本一样
|
||||
*/
|
||||
class ErrorException extends Exception
|
||||
class ErrorException extends Exception
|
||||
{
|
||||
/**
|
||||
* 用于保存错误级别
|
||||
@@ -35,7 +35,7 @@ class ErrorException extends Exception
|
||||
* @param integer $line 出错行号
|
||||
* @param array $context 错误上下文,会包含错误触发处作用域内所有变量的数组
|
||||
*/
|
||||
public function __construct($severity, $message, $file, $line, $context)
|
||||
public function __construct($severity, $message, $file, $line, array $context = [])
|
||||
{
|
||||
$this->severity = $severity;
|
||||
$this->message = $message;
|
||||
|
||||
Reference in New Issue
Block a user