* Add comment and type hint.

This commit is contained in:
dingguodong
2023-08-29 14:16:07 +08:00
parent e4eade6071
commit 1d38e1bdb9
+2 -1
View File
@@ -3742,6 +3742,7 @@ class execution extends control
}
/**
* 显示白名单信息。
* Get white list personnel.
*
* @param int $executionID
@@ -3754,7 +3755,7 @@ class execution extends control
* @access public
* @return void
*/
public function whitelist($executionID = 0, $module='execution', $objectType = 'sprint', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
public function whitelist(int $executionID = 0, string $module='execution', string $objectType = 'sprint', string $orderBy = 'id_desc', int $recTotal = 0, int $recPerPage = 20, int $pageID = 1)
{
/* use first execution if executionID does not exist. */
if(!isset($this->executions[$executionID])) $executionID = key($this->executions);