fix unused argument

This commit is contained in:
sunxyw 2022-11-15 23:11:24 +08:00
parent 352f3e920e
commit 5a3da43640
No known key found for this signature in database
GPG Key ID: F391C42B19AFFC98
2 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,6 @@ class InvalidArgumentException extends ZMException
public function __construct($message = '', $code = 0, \Throwable $previous = null)
{
// TODO: change this to a better error message
parent::__construct($message, '', 74, $previous);
parent::__construct($message, '', $code ?: 74, $previous);
}
}

View File

@ -2,13 +2,14 @@
declare(strict_types=1);
use OneBot\Driver\ExceptionHandler;
/**
* CLI Application 入口文件,先引入 Composer 组件
*
* @noinspection PhpIncludeInspection
*/
use OneBot\Exception\ExceptionHandler;
require_once((!is_dir(__DIR__ . '/../vendor')) ? getcwd() : (__DIR__ . '/..')) . '/vendor/autoload.php';
// 适配 Windows 的 conhost 中文显示,因为使用 micro 打包框架运行的时候在 Windows 运行中文部分会变成乱码