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(); }