From 903500b53bfff623bdee0c46372474e6dd4ff63a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 29 Sep 2024 10:18:32 +0200 Subject: [PATCH 1/2] fix phpstan --- phpstan.neon.dist | 1 - 1 file changed, 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 4044a33546d77..6b79013c95d6f 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -102,7 +102,6 @@ parameters: - '# dolGetButtonTitle expects array Date: Sun, 29 Sep 2024 10:23:55 +0200 Subject: [PATCH 2/2] fix phpstan --- htdocs/projet/admin/project.php | 2 +- htdocs/stripe/admin/stripe.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/projet/admin/project.php b/htdocs/projet/admin/project.php index 328c3490b6cde..a1e2c984e58b5 100644 --- a/htdocs/projet/admin/project.php +++ b/htdocs/projet/admin/project.php @@ -274,7 +274,7 @@ print ''; print ''.$langs->trans("ManageOpportunitiesStatus").''; print ''; -print ajax_constantonoff("PROJECT_USE_OPPORTUNITIES", null, null, 0, 0, 1); +print ajax_constantonoff("PROJECT_USE_OPPORTUNITIES", array(), null, 0, 0, 1); print ''; print ""; print ''; diff --git a/htdocs/stripe/admin/stripe.php b/htdocs/stripe/admin/stripe.php index 9c31175b1ab49..c00d7a0d09cef 100644 --- a/htdocs/stripe/admin/stripe.php +++ b/htdocs/stripe/admin/stripe.php @@ -593,7 +593,7 @@ print ''; print $langs->trans("SecurityTokenIsUnique").''; if ($conf->use_javascript_ajax) { - print ajax_constantonoff('PAYMENT_SECURITY_TOKEN_UNIQUE', null, null, 0, 0, 1); + print ajax_constantonoff('PAYMENT_SECURITY_TOKEN_UNIQUE', array(), null, 0, 0, 1); } else { $arrval = array('0' => $langs->trans("No"), '1' => $langs->trans("Yes")); print $form->selectarray("PAYMENT_SECURITY_TOKEN_UNIQUE", $arrval, $conf->global->PAYMENT_SECURITY_TOKEN_UNIQUE);