fix phpstan

This commit is contained in:
Frédéric France 2025-02-11 20:22:06 +01:00
parent 2fc2e045be
commit 3327875ee4
No known key found for this signature in database
GPG Key ID: CE25B0B7B53B9177
2 changed files with 5 additions and 13 deletions

View File

@ -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

View File

@ -4,7 +4,7 @@
* Copyright (C) 2007-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2018 Alexandre Spangaro <aspangaro@open-dsi.fr>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
*
* 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')) {