From 4bc77ebcda60da0f1081da4328c9c68ad7140fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 19 Oct 2025 01:56:26 +0200 Subject: [PATCH] clean phpstan baseline (#35836) * clean phpstan baseline * clean phpstan baseline --- dev/build/phpstan/phpstan-baseline.neon | 30 ------------------------- htdocs/core/website.inc.php | 7 ++++++ 2 files changed, 7 insertions(+), 30 deletions(-) diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index c23f77e134e..d980edeaf18 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -7410,12 +7410,6 @@ parameters: count: 1 path: ../../../htdocs/core/modules/cheque/doc/pdf_blochet.class.php - - - message: '#^Parameter \#2 \$object of method BordereauChequeBlochet\:\:_pagefoot\(\) expects CommonObject, null given\.$#' - identifier: argument.type - count: 1 - path: ../../../htdocs/core/modules/cheque/doc/pdf_blochet.class.php - - message: '#^Property Commande\:\:\$availability \(string\) in isset\(\) is not nullable\.$#' identifier: isset.property @@ -8796,30 +8790,6 @@ parameters: count: 1 path: ../../../htdocs/core/website.inc.php - - - message: '#^Variable \$conf might not be defined\.$#' - identifier: variable.undefined - count: 3 - path: ../../../htdocs/core/website.inc.php - - - - message: '#^Variable \$db might not be defined\.$#' - identifier: variable.undefined - count: 7 - path: ../../../htdocs/core/website.inc.php - - - - message: '#^Variable \$hookmanager might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../htdocs/core/website.inc.php - - - - message: '#^Variable \$websitekey might not be defined\.$#' - identifier: variable.undefined - count: 2 - path: ../../../htdocs/core/website.inc.php - - message: '#^Loose comparison using \=\= between 1 and 0 will always evaluate to false\.$#' identifier: equal.alwaysFalse diff --git a/htdocs/core/website.inc.php b/htdocs/core/website.inc.php index 3fdee498d18..a0e9eec4ba2 100644 --- a/htdocs/core/website.inc.php +++ b/htdocs/core/website.inc.php @@ -24,6 +24,13 @@ * It is run only when a web page is called. * The global variable $websitekey must be defined. */ +/** + * @var Conf $conf + * @var DoliDB $db + * @var HookManager $hookmanager + * + * @var string $websitekey + */ // Load website class include_once DOL_DOCUMENT_ROOT.'/website/class/website.class.php';