* Compatible for php8.1.

This commit is contained in:
wangyidong
2022-08-29 11:19:31 +08:00
parent 0fc0a2684e
commit 8d56ef8891
15 changed files with 1121 additions and 1118 deletions
+4 -3
View File
@@ -115,10 +115,11 @@ class storyTest
* @param int $bugID
* @param string $from
* @param string $extra
* @param string $params
* @access public
* @return void
*/
public function createTest($executionID = 0, $bugID = 0, $from = '', $extra = '', $params)
public function createTest($executionID = 0, $bugID = 0, $from = '', $extra = '', $params = '')
{
$_POST = $params;
$result = $this->objectModel->create($executionID, $bugID, $from, $extra);
@@ -159,7 +160,7 @@ class storyTest
* @access public
* @return void
*/
public function batchCreateTest($productID = 0, $branch = 0, $type = 'story', $params)
public function batchCreateTest($productID = 0, $branch = 0, $type = 'story', $params = '')
{
$_POST = $params;
$results = $this->objectModel->batchCreate($productID, $branch, $type);
@@ -451,7 +452,7 @@ class storyTest
* @access public
* @return void
*/
public function batchToTaskTest($executionID, $projectID = 0, $params)
public function batchToTaskTest($executionID, $projectID = 0, $params = '')
{
$_POST = $params;
$taskIdList = $this->objectModel->batchToTask($executionID, $projectID);