From bb942ba0091cdb735b301427a1b9541ff778262c Mon Sep 17 00:00:00 2001 From: thibdrev Date: Wed, 24 Jan 2024 21:53:05 +0100 Subject: [PATCH] qual: phpstan for htdocs/core/actions_massactions.inc.php htdocs/core/actions_massactions.inc.php 1754 Property CommonObject::$fk_project (int) does not accept array|string. --- htdocs/core/actions_massactions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/actions_massactions.inc.php b/htdocs/core/actions_massactions.inc.php index 8994b24e017..63781b79df3 100644 --- a/htdocs/core/actions_massactions.inc.php +++ b/htdocs/core/actions_massactions.inc.php @@ -1751,7 +1751,7 @@ if (!$error && ($massaction == 'clonetasks' || ($action == 'clonetasks' && $conf } if (!$error) { - $clone_task->fk_project = GETPOST('projectid', 'int'); + $clone_task->fk_project = GETPOSTINT('projectid'); $clone_task->ref = $defaultref; $clone_task->label = $origin_task->label; $clone_task->description = $origin_task->description;