Skip to content

Commit

Permalink
fix: 自定义错误bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wyzheng1997 committed Apr 18, 2024
1 parent 743d31a commit c40bc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Exceptions/ApiCustomError.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ApiCustomError extends \Exception
{
use ApiResource;

protected int $httpCode;
protected int|null $httpCode;

public function __construct(string $msg = '操作失败', int $code = 400, int $httpCode = null)
{
Expand Down

0 comments on commit c40bc17

Please sign in to comment.