mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
qual: phpstan
htdocs/admin/expensereport_rules.php 128 Property ExpenseReportRule::$restrictive (int) does not accept array|string. htdocs/admin/expensereport_rules.php 129 Property ExpenseReportRule::$fk_c_type_fees (int) does not accept array|string. htdocs/admin/expensereport_rules.php 131 Property ExpenseReportRule::$amount (float) does not accept string.
This commit is contained in:
parent
f3d97a8a13
commit
9039db9f54
|
|
@ -65,12 +65,12 @@ if (empty($reshook)) {
|
|||
$apply_to = GETPOST('apply_to');
|
||||
$fk_user = GETPOST('fk_user', 'int');
|
||||
$fk_usergroup = GETPOST('fk_usergroup', 'int');
|
||||
$restrictive = GETPOST('restrictive', 'int');
|
||||
$fk_c_type_fees = GETPOST('fk_c_type_fees', 'int');
|
||||
$restrictive = GETPOSTINT('restrictive');
|
||||
$fk_c_type_fees = GETPOSTINT('fk_c_type_fees');
|
||||
$code_expense_rules_type = GETPOST('code_expense_rules_type');
|
||||
$dates = dol_mktime(12, 0, 0, GETPOST('startmonth'), GETPOST('startday'), GETPOST('startyear'));
|
||||
$datee = dol_mktime(12, 0, 0, GETPOST('endmonth'), GETPOST('endday'), GETPOST('endyear'));
|
||||
$amount = price2num(GETPOST('amount'), 'MT', 2);
|
||||
$amount = (float) price2num(GETPOST('amount'), 'MT', 2);
|
||||
|
||||
if (!empty($id)) {
|
||||
$result = $object->fetch($id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user