2
0
forked from Wavyzz/dolibarr

Merge pull request #33027 from frederic34/public_member_card

fix phpstan
This commit is contained in:
Laurent Destailleur
2025-02-12 04:02:53 +01:00
committed by GitHub
3 changed files with 8 additions and 15 deletions

View File

@@ -24444,18 +24444,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')) {

View File

@@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@inodbox.com>
* 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
@@ -19,6 +19,7 @@
* @var Canvas $this
* @var Conf $conf
* @var CommonObject $this
* @var DoliDB $db
* @var Translate $langs
* @var User $user
*