From 48dc47fa71468d36d1fcd9830da3a68eb6b39d2f Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 16 Aug 2023 16:19:31 +0800 Subject: [PATCH] * Optimize code for bugTest::getStoryBugsTest. --- module/bug/test/bug.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/bug/test/bug.class.php b/module/bug/test/bug.class.php index a4d21b858b..56fa8e0210 100644 --- a/module/bug/test/bug.class.php +++ b/module/bug/test/bug.class.php @@ -773,13 +773,14 @@ class bugTest } /** + * 测试获取需求产生的bug。 * Test get bugs of a story. * * @param int $storyID * @access public * @return string */ - public function getStoryBugsTest($storyID) + public function getStoryBugsTest(int $storyID): array|string { $array = $this->objectModel->getStoryBugs($storyID);