diff --git a/htdocs/admin/invoice.php b/htdocs/admin/invoice.php index 5c6e33b2030..86095306c4c 100644 --- a/htdocs/admin/invoice.php +++ b/htdocs/admin/invoice.php @@ -359,6 +359,8 @@ foreach ($dirmodels as $reldir) { } $arrayofmodules = dol_sort_array($arrayofmodules, 'position'); +/** @var ModeleNumRefFactures[] $arrayofmodules */ +'@phan-var-force ModeleNumRefFactures[] $arrayofmodules'; foreach ($arrayofmodules as $module) { $file = strtolower($module->getName($langs)); @@ -558,6 +560,7 @@ foreach ($dirmodels as $reldir) { $module = new $classname($db); '@phan-var-force ModelePDFFactures $module'; + /** @var ModelePDFFactures $module */ $modulequalified = 1; if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) { diff --git a/htdocs/admin/reception_setup.php b/htdocs/admin/reception_setup.php index bf0ce3b6361..51dff473ca0 100644 --- a/htdocs/admin/reception_setup.php +++ b/htdocs/admin/reception_setup.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2018 Quentin Vial-Gouteyron * Copyright (C) 2024-2025 MDW * Copyright (C) 2024-2025 Frédéric France * @@ -131,6 +131,7 @@ if ($action == 'updateMask') { $module = new $classname($db); '@phan-var-force ModelePdfReception $module'; + /** @var ModelePdfReception $module */ if ($module->write_file($exp, $langs) > 0) { header("Location: ".DOL_URL_ROOT."/document.php?modulepart=reception&file=SPECIMEN.pdf"); @@ -220,8 +221,8 @@ foreach ($dirmodels as $reldir) { require_once $dir.'/'.$file.'.php'; $module = new $file(); - '@phan-var-force ModelNumRefReception $module'; + /** @var ModelNumRefReception $module */ if ($module->isEnabled()) { // Show modules according to features level @@ -364,12 +365,13 @@ foreach ($dirmodels as $reldir) { $module = new $classname($db); '@phan-var-force ModelePdfReception $module'; + /** @var ModelePdfReception $module */ $modulequalified = 1; - if (isset($module->version) && $module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) { + if ($module->version == 'development' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 2) { $modulequalified = 0; } - if (isset($module->version) && $module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) { + if ($module->version == 'experimental' && getDolGlobalInt('MAIN_FEATURES_LEVEL') < 1) { $modulequalified = 0; } diff --git a/htdocs/core/tpl/extrafields_view.tpl.php b/htdocs/core/tpl/extrafields_view.tpl.php index 4c77fc93e74..8004c522020 100644 --- a/htdocs/core/tpl/extrafields_view.tpl.php +++ b/htdocs/core/tpl/extrafields_view.tpl.php @@ -1,7 +1,7 @@ * Copyright (C) 2014 Juanjo Menent - * Copyright (C) 2021-2024 Frédéric France + * Copyright (C) 2021-2025 Frédéric France * Copyright (C) 2025 MDW * * This program is free software; you can redistribute it and/or modify @@ -24,7 +24,7 @@ * @var DoliDB $db * @var ExtraFields $extrafields * @var Form $form - * @var Hookmanager $hookmanager + * @var HookManager $hookmanager * @var Translate $langs * @var User $user * @@ -311,7 +311,7 @@ if (empty($reshook) && !empty($object->table_element) && isset($extrafields->att print ''; - /** @var $formai ?FormAI */ + /** @var ?FormAI $formai */ if (empty($formai) || $formai instanceof FormAI) { include_once DOL_DOCUMENT_ROOT.'/core/class/html.formai.class.php'; $formai = new FormAI($db); diff --git a/htdocs/delivery/class/delivery.class.php b/htdocs/delivery/class/delivery.class.php index 1a159e1e16e..b43ac9356bc 100644 --- a/htdocs/delivery/class/delivery.class.php +++ b/htdocs/delivery/class/delivery.class.php @@ -1,12 +1,12 @@ - * Copyright (C) 2005-2014 Regis Houssin - * Copyright (C) 2006-2007 Laurent Destailleur - * Copyright (C) 2007 Franky Van Liedekerke - * Copyright (C) 2011-2023 Philippe Grand - * Copyright (C) 2013 Florian Henry - * Copyright (C) 2014-2015 Marcos García - * Copyright (C) 2023-2024 Frédéric France +/* Copyright (C) 2003 Rodolphe Quiedeville + * Copyright (C) 2005-2014 Regis Houssin + * Copyright (C) 2006-2007 Laurent Destailleur + * Copyright (C) 2007 Franky Van Liedekerke + * Copyright (C) 2011-2023 Philippe Grand + * Copyright (C) 2013 Florian Henry + * Copyright (C) 2014-2015 Marcos García + * Copyright (C) 2023-2025 Frédéric France * Copyright (C) 2024-2025 MDW * * This program is free software; you can redistribute it and/or modify @@ -586,7 +586,7 @@ class Delivery extends CommonObject $this->note_private = $expedition->note_private; $this->note_public = $expedition->note_public; $this->fk_project = $expedition->fk_project; - $this->date_delivery = null; // Date of real reception. The Expedition->date_delivery is the planned one. + $this->date_delivery = ''; // Date of real reception. The Expedition->date_delivery is the planned one. $this->fk_delivery_address = $expedition->fk_delivery_address; $this->socid = $expedition->socid; $this->ref_customer = $expedition->ref_customer;