* Refactor updateUserView method.

This commit is contained in:
tianshujie
2023-09-01 09:27:08 +08:00
parent 5e3e53a268
commit c88f163aac
3 changed files with 16 additions and 17 deletions
+7 -6
View File
@@ -2622,15 +2622,16 @@ class executionTest
}
/**
* Test Update user view of execution and it's product.
* 更新用户可查看的执行和产品。
* Update the execution and product that users can view.
*
* @param int $executionID
* @param string $objectType
* @param array $users
* @param int $executionID
* @param string $objectType
* @param array $users
* @access public
* @return void
* @return string|array
*/
public function updateUserViewTest($executionID, $objectType = 'sprint', $users = array())
public function updateUserViewTest(int $executionID, string $objectType = 'sprint', array $users = array()): string|array
{
$this->executionModel->updateUserView($executionID, $objectType, $users);