From ffd6a45550155de156f3b54278947546da26336a Mon Sep 17 00:00:00 2001 From: Lucas Marcouiller Date: Fri, 5 Dec 2025 15:29:23 +0100 Subject: [PATCH 1/2] Fix some phan warnings --- htdocs/core/modules/import/modules_import.php | 4 ++-- htdocs/hrm/class/evaluationdet.class.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/import/modules_import.php b/htdocs/core/modules/import/modules_import.php index ca956a86f87..8658eece712 100644 --- a/htdocs/core/modules/import/modules_import.php +++ b/htdocs/core/modules/import/modules_import.php @@ -48,12 +48,12 @@ class ModeleImports public $error = ''; /** - * @var string[] Error codes (or messages) + * @var string[]|array> Error codes (or messages) */ public $errors = array(); /** - * @var string[] warnings codes (or messages) + * @var string[]|array> warnings codes (or messages) */ public $warnings = array(); diff --git a/htdocs/hrm/class/evaluationdet.class.php b/htdocs/hrm/class/evaluationdet.class.php index 9ffb8a843ff..105c20fa455 100644 --- a/htdocs/hrm/class/evaluationdet.class.php +++ b/htdocs/hrm/class/evaluationdet.class.php @@ -134,6 +134,10 @@ class EvaluationLine extends CommonObjectLine * @var int */ public $fk_rank; + /** + * @var int + */ + public $rankorder; /** * @var int */ From 02037dd0ccd19f049b44e3f34ab0b3d87a1656f6 Mon Sep 17 00:00:00 2001 From: Lucas Marcouiller Date: Fri, 5 Dec 2025 15:37:50 +0100 Subject: [PATCH 2/2] remove var_dump --- htdocs/product/stock/productlot_list.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/product/stock/productlot_list.php b/htdocs/product/stock/productlot_list.php index 9598bf57dbc..068a2c7dd44 100644 --- a/htdocs/product/stock/productlot_list.php +++ b/htdocs/product/stock/productlot_list.php @@ -593,7 +593,6 @@ if (!getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) { $totalarray['nbfield']++; print ''."\n"; -var_dump($object->fields); // Detect if we need a fetch on each output line $needToFetchEachLine = 0; if (isset($extrafields->attributes[$object->table_element]['computed']) && is_array($extrafields->attributes[$object->table_element]['computed']) && count($extrafields->attributes[$object->table_element]['computed']) > 0) {