diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 4fc54d336a2..8a8f9700581 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -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 diff --git a/htdocs/core/tpl/card_presend.tpl.php b/htdocs/core/tpl/card_presend.tpl.php index d29932c2c20..38eca727f3a 100644 --- a/htdocs/core/tpl/card_presend.tpl.php +++ b/htdocs/core/tpl/card_presend.tpl.php @@ -3,7 +3,7 @@ * Copyright (C) 2022 Charlene Benke * Copyright (C) 2023 Maxime Nicolas * Copyright (C) 2023 Benjamin GREMBI - * Copyright (C) 2024 Frédéric France + * Copyright (C) 2024-2025 Frédéric France * Copyright (C) 2024 MDW * * 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