diff --git a/htdocs/societe/project.php b/htdocs/societe/project.php index a12272c94ab..3781788b03f 100644 --- a/htdocs/societe/project.php +++ b/htdocs/societe/project.php @@ -6,7 +6,7 @@ * Copyright (C) 2007 Patrick Raguin * Copyright (C) 2010 Juanjo Menent * Copyright (C) 2015 Marcos García - * Copyright (C) 2021 Frédéric France + * Copyright (C) 2021-2024 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -176,7 +176,7 @@ if ($socid) { print dol_get_fiche_end(); print '
'; - $params = ''; + $params = array(); $backtopage = $_SERVER['PHP_SELF'].'?socid='.$object->id; $newcardbutton = dolGetButtonTitle($langs->trans("NewProject"), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/projet/card.php?action=create&socid='.$object->id.'&backtopageforcancel='.urlencode($backtopage), '', 1, $params); diff --git a/phpstan.neon.dist b/phpstan.neon.dist index f42d7d93380..d985f2d1474 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -98,7 +98,6 @@ parameters: - '#( |::)((multi)?selectarray)\(\) expects array#' - '# (reWriteAllMenus|check_authentication) expects array#' - '#::(_validateMyObject|select_company)\(\) expects array