From ad9ed1e75986eff7827dc628e51ccc10db07ca3c Mon Sep 17 00:00:00 2001 From: Lucas Marcouiller <45882981+Hystepik@users.noreply.github.com> Date: Tue, 9 Jun 2026 03:09:14 +0200 Subject: [PATCH] Fix some phpstan warnings (#38583) Co-authored-by: Hystepik Co-authored-by: Laurent Destailleur --- htdocs/bookcal/booking_list.php | 1 + htdocs/comm/action/pertype.php | 2 +- htdocs/compta/bank/various_payment/document.php | 2 +- htdocs/compta/deplacement/stats/index.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/bookcal/booking_list.php b/htdocs/bookcal/booking_list.php index b673401193b..f1ccc9ea740 100644 --- a/htdocs/bookcal/booking_list.php +++ b/htdocs/bookcal/booking_list.php @@ -55,6 +55,7 @@ $ref = GETPOST('ref', 'alpha'); $socid = GETPOSTINT('socid'); $action = GETPOST('action', 'aZ09'); $type = GETPOST('type', 'aZ09'); +$lineid = GETPOSTINT('lineid'); $fieldid = (!empty($ref) ? 'ref' : 'rowid'); if ($user->socid) { diff --git a/htdocs/comm/action/pertype.php b/htdocs/comm/action/pertype.php index b6f6700f36e..e45f5cf7382 100644 --- a/htdocs/comm/action/pertype.php +++ b/htdocs/comm/action/pertype.php @@ -495,7 +495,7 @@ if ($user->hasRight('agenda', 'myactions', 'create') || $user->hasRight('agenda' $newcardbutton .= dolGetButtonTitle($langs->trans("AddAction"), '', 'fa fa-plus-circle', $urltocreateaction); } -print_barre_liste($langs->trans("Agenda"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, -1, 'object_action', 0, $nav.''.$newcardbutton, '', $limit, 1, 0, 1, $viewmode); +print_barre_liste($langs->trans("Agenda"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, -1, -1, 'object_action', 0, $nav.''.$newcardbutton, '', $limit, 1, 0, 1, $viewmode); $link = ''; diff --git a/htdocs/compta/bank/various_payment/document.php b/htdocs/compta/bank/various_payment/document.php index b3f40d48a21..4f3f6ec9785 100644 --- a/htdocs/compta/bank/various_payment/document.php +++ b/htdocs/compta/bank/various_payment/document.php @@ -123,7 +123,7 @@ if ($object->id) { $morehtmlref .= '
'; $morehtmlref .= ''; $morehtmlref .= ''; - $morehtmlref .= $formproject->select_projects(0, (string) $object->fk_project, 'projectid', $maxlength, 0, 1, 0, 1, 0, 0, '', 1); + $morehtmlref .= $formproject->select_projects(0, (string) $object->fk_project, 'projectid', 16, 0, 1, 0, 1, 0, 0, '', 1); $morehtmlref .= ''; $morehtmlref .= '
'; } else { diff --git a/htdocs/compta/deplacement/stats/index.php b/htdocs/compta/deplacement/stats/index.php index 3eba41efe7d..4780f7943bd 100644 --- a/htdocs/compta/deplacement/stats/index.php +++ b/htdocs/compta/deplacement/stats/index.php @@ -92,7 +92,7 @@ llxHeader(); $title = $langs->trans("TripsAndExpensesStatistics"); $dir = $conf->deplacement->dir_temp; -print load_fiche_titre($title, $mesg); +print load_fiche_titre($title); dol_mkdir($dir);