From d2fe4f7a3ed0d36f3c6020a394e9325e73751b45 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Fri, 11 Jul 2025 15:02:07 +0800 Subject: [PATCH] * [misc] compatibility with PHP8.4 --- module/score/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/score/model.php b/module/score/model.php index 6e42db9e0a..e44c76bb0c 100644 --- a/module/score/model.php +++ b/module/score/model.php @@ -19,7 +19,7 @@ class scoreModel extends model * @access public * @return array */ - public function getListByAccount(string $account, object $pager = null): array + public function getListByAccount(string $account, ?object $pager = null): array { return $this->dao->select('*')->from(TABLE_SCORE)->where('account')->eq($account)->orderBy('time_desc, id_desc')->page($pager)->fetchAll(); }