fix phpstan

This commit is contained in:
Frédéric France 2025-01-27 20:01:20 +01:00
parent 11cb6282b6
commit e0e03f1a1a
No known key found for this signature in database
GPG Key ID: CE25B0B7B53B9177
2 changed files with 9 additions and 25 deletions

View File

@ -15006,24 +15006,6 @@ parameters:
count: 12
path: ../../../htdocs/core/tpl/card_presend.tpl.php
-
message: '#^Variable \$defaulttopic might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/core/tpl/card_presend.tpl.php
-
message: '#^Variable \$diroutput might not be defined\.$#'
identifier: variable.undefined
count: 4
path: ../../../htdocs/core/tpl/card_presend.tpl.php
-
message: '#^Variable \$file might not be defined\.$#'
identifier: variable.undefined
count: 2
path: ../../../htdocs/core/tpl/card_presend.tpl.php
-
message: '#^Variable \$hidedesc might not be defined\.$#'
identifier: variable.undefined
@ -15066,12 +15048,6 @@ parameters:
count: 1
path: ../../../htdocs/core/tpl/card_presend.tpl.php
-
message: '#^Variable \$object might not be defined\.$#'
identifier: variable.undefined
count: 36
path: ../../../htdocs/core/tpl/card_presend.tpl.php
-
message: '#^Variable \$user might not be defined\.$#'
identifier: variable.undefined

View File

@ -3,7 +3,7 @@
* Copyright (C) 2022 Charlene Benke <charlene@patas-monkey.com>
* Copyright (C) 2023 Maxime Nicolas <maxime@oarces.com>
* Copyright (C) 2023 Benjamin GREMBI <benjamin@oarces.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
@ -31,6 +31,14 @@
* $arrayoffamiliestoexclude=array('system', 'mycompany', 'object', 'objectamount', 'date', 'user', ...);
* $file
*/
/**
* @var int<0,1> $diroutput
* @var string $defaulttopic
* @var string $defaulttopiclang
* @var string[] $arrayoffamiliestoexclude
* @var string $file
* @var CommonObject $object
*/
'
@phan-var-force int<0,1> $diroutput
@phan-var-force string $defaulttopic