From 3681fa7dad74458ecf840cdbe2184f970585ebcd Mon Sep 17 00:00:00 2001 From: thibdrev Date: Mon, 22 Jan 2024 12:21:38 +0100 Subject: [PATCH] qual: phpstan htdocs/admin/expensereport_ik.php 66 Property ExpenseReportIk::$coef (float) does not accept array|string. htdocs/admin/expensereport_ik.php 67 Property ExpenseReportIk::$ikoffset (float) does not accept array|string. htdocs/admin/expensereport_ik.php 68 Property ExpenseReportIk::$fk_c_exp_tax_cat (int) does not accept array|string. htdocs/admin/expensereport_ik.php 69 Property ExpenseReportIk::$fk_range (int) does not accept array|string. --- htdocs/admin/expensereport_ik.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/admin/expensereport_ik.php b/htdocs/admin/expensereport_ik.php index 14ba0d5eddb..eab7dfe8f99 100644 --- a/htdocs/admin/expensereport_ik.php +++ b/htdocs/admin/expensereport_ik.php @@ -39,10 +39,10 @@ $error = 0; $action = GETPOST('action', 'aZ09'); $id = GETPOST('id', 'int'); -$ikoffset = GETPOST('ikoffset', 'int'); -$coef = GETPOST('coef', 'int'); -$fk_c_exp_tax_cat = GETPOST('fk_c_exp_tax_cat'); -$fk_range = GETPOST('fk_range', 'int'); +$ikoffset = (float) GETPOST('ikoffset', 'int'); +$coef = (float) GETPOST('coef', 'int'); +$fk_c_exp_tax_cat = GETPOSTINT('fk_c_exp_tax_cat'); +$fk_range = GETPOSTINT('fk_range'); $expIk = new ExpenseReportIk($db);