diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 8e8123cefb0..6c2b779f38a 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -24744,18 +24744,6 @@ parameters: count: 1 path: ../../../htdocs/public/members/public_card.php - - - message: '#^Variable \$db might not be defined\.$#' - identifier: variable.undefined - count: 5 - path: ../../../htdocs/public/members/public_card.php - - - - message: '#^Variable \$langs might not be defined\.$#' - identifier: variable.undefined - count: 17 - path: ../../../htdocs/public/members/public_card.php - - message: '#^Call to function is_numeric\(\) with int will always evaluate to true\.$#' identifier: function.alreadyNarrowedType diff --git a/htdocs/public/members/public_card.php b/htdocs/public/members/public_card.php index ed2a67f24ee..a9adb98c407 100644 --- a/htdocs/public/members/public_card.php +++ b/htdocs/public/members/public_card.php @@ -4,7 +4,7 @@ * Copyright (C) 2007-2012 Laurent Destailleur * Copyright (C) 2012 Regis Houssin * Copyright (C) 2018 Alexandre Spangaro - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2025 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 @@ -52,6 +52,10 @@ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php'; require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent_type.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php'; +/** + * @var DoliDB $db + * @var Translate $langs + */ // Security check if (!isModEnabled('member')) {