* add doc

* Update linkedobjectblock.tpl.php
This commit is contained in:
Frédéric FRANCE 2025-08-19 11:42:38 +02:00 committed by GitHub
parent b8010a63c2
commit 96464b9130
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 8 deletions

View file

@ -900,12 +900,6 @@ parameters:
count: 1
path: ../../../htdocs/adherents/subscription/card.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
count: 1
path: ../../../htdocs/adherents/tpl/linkedobjectblock.tpl.php
-
message: '#^Ternary operator condition is always false\.$#'
identifier: ternary.alwaysFalse

View file

@ -2,7 +2,7 @@
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
@ -19,7 +19,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* @var Conf $conf
* @var ?Conf $conf
* @var User $user
*/
// Protection to avoid direct call of template
@ -34,8 +34,13 @@ global $user;
$langs = $GLOBALS['langs'];
'@phan-var-force Translate $langs';
/**
* @var Translate $langs
* @var CommonObject $object
*/
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
'@phan-var-force Subscription[] $linkedObjectBlock';
/** @var Subscription[] $linkedObjectBlock */
$langs->load("members");
$total = 0;