From 0ba9bbcfe2f9ce138d87dfe9e20b7965ddd1b81d Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 16 Aug 2023 08:49:18 +0800 Subject: [PATCH] * Modify return type. --- module/bug/control.php | 4 ++-- module/bug/zen.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 22c19d29f5..6ad950ed04 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -1361,9 +1361,9 @@ class bug extends control * @param int $productID * @param int $bugID * @access public - * @return array + * @return int */ - public function ajaxGetProductBugs($productID, $bugID): array + public function ajaxGetProductBugs($productID, $bugID): int { $product = $this->loadModel('product')->getById($productID); $bug = $this->bug->getById($bugID); diff --git a/module/bug/zen.php b/module/bug/zen.php index 653f4651ce..bd5ca425ad 100644 --- a/module/bug/zen.php +++ b/module/bug/zen.php @@ -1989,7 +1989,7 @@ class bugZen extends bug * @param int $regionID * @param string $message * @access protected - * @return bool + * @return bool|int */ protected function responseAfterOperate(int $bugID, array $changes = array(), string $kanbanGroup = '', int $regionID = 0, string $message = ''): bool|int {