From 8b7aa2a6c1ef8a6776c15cd7971464612f0cd213 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Fri, 8 Sep 2023 08:48:24 +0800 Subject: [PATCH] * Fix type error. --- module/execution/model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index d805d40088..81ee267e81 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -3622,12 +3622,13 @@ class executionModel extends model * 计算燃尽图数据。 * Compute burn of a execution. * - * @param int $executionID + * @param int|string|array $executionID * @access public * @return array */ - public function computeBurn(int $executionID = 0): array + public function computeBurn(int|string|array $executionID = ''): array { + if(is_int($executionID)) $executionID = (string)$executionID; $executions = $this->dao->select('id, code')->from(TABLE_EXECUTION) ->where('type')->in('sprint,stage') ->andWhere('lifetime')->ne('ops')