系统级报错***优化报错Fatal error: Type of app\common\library\token\TokenExpirationException::$message

This commit is contained in:
2026-04-13 16:31:06 +08:00
parent 096516ba33
commit 62bfd279be

View File

@@ -11,12 +11,15 @@ use Exception;
*/
class TokenExpirationException extends Exception
{
protected array $data = [];
public function __construct(
protected string $message = '',
protected int $code = 409,
protected array $data = [],
string $message = '',
int $code = 409,
array $data = [],
?\Throwable $previous = null
) {
$this->data = $data;
parent::__construct($message, $code, $previous);
}