mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
fix unused argument
This commit is contained in:
parent
352f3e920e
commit
5a3da43640
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 运行中文部分会变成乱码
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user