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';