+ Add type for args.

This commit is contained in:
朱金勇
2023-07-12 04:29:53 +00:00
parent e636eaf108
commit d9ad294cf4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -659,7 +659,7 @@ class branchModel extends model
* @access public
* @return bool
*/
public function showBranch($productID, $moduleID = 0, $executionID = 0)
public function showBranch(int $productID, int $moduleID = 0, int $executionID = 0): bool
{
$this->loadModel('product');
if(empty($productID) and empty($moduleID))
+1 -1
View File
@@ -967,7 +967,7 @@ class execution extends control
* @access public
* @return void
*/
public function bug($executionID = 0, $productID = 0, $branch = 'all', $orderBy = 'status,id_desc', $build = 0, $type = 'all', $param = 0, $recTotal = 0, $recPerPage = 20, $pageID = 1)
public function bug(int $executionID = 0, int $productID = 0, string $branch = 'all', string $orderBy = 'status,id_desc', int $build = 0, string $type = 'all', int $param = 0, int $recTotal = 0, int $recPerPage = 20, int $pageID = 1)
{
/* Load these two models. */
$this->loadModel('bug');