mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
fix unused argument
This commit is contained in:
@@ -9,6 +9,6 @@ class InvalidArgumentException extends ZMException
|
|||||||
public function __construct($message = '', $code = 0, \Throwable $previous = null)
|
public function __construct($message = '', $code = 0, \Throwable $previous = null)
|
||||||
{
|
{
|
||||||
// TODO: change this to a better error message
|
// TODO: change this to a better error message
|
||||||
parent::__construct($message, '', 74, $previous);
|
parent::__construct($message, '', $code ?: 74, $previous);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,13 +2,14 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use OneBot\Driver\ExceptionHandler;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CLI Application 入口文件,先引入 Composer 组件
|
* CLI Application 入口文件,先引入 Composer 组件
|
||||||
*
|
*
|
||||||
* @noinspection PhpIncludeInspection
|
* @noinspection PhpIncludeInspection
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use OneBot\Exception\ExceptionHandler;
|
||||||
|
|
||||||
require_once((!is_dir(__DIR__ . '/../vendor')) ? getcwd() : (__DIR__ . '/..')) . '/vendor/autoload.php';
|
require_once((!is_dir(__DIR__ . '/../vendor')) ? getcwd() : (__DIR__ . '/..')) . '/vendor/autoload.php';
|
||||||
|
|
||||||
// 适配 Windows 的 conhost 中文显示,因为使用 micro 打包框架运行的时候在 Windows 运行中文部分会变成乱码
|
// 适配 Windows 的 conhost 中文显示,因为使用 micro 打包框架运行的时候在 Windows 运行中文部分会变成乱码
|
||||||
|
|||||||
Reference in New Issue
Block a user