diff --git a/dev/tools/phan/baseline.txt b/dev/tools/phan/baseline.txt index 367795748b2..ed0afd7d3a2 100644 --- a/dev/tools/phan/baseline.txt +++ b/dev/tools/phan/baseline.txt @@ -409,25 +409,6 @@ return [ 'htdocs/core/modules/import/import_xlsx.modules.php' => ['PhanTypeMismatchProperty'], 'htdocs/core/modules/member/doc/pdf_standard_member.class.php' => ['PhanTypeMismatchArgument'], 'htdocs/core/modules/member/modules_cards.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modAdherent.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modCommande.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modContrat.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modDon.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modExpedition.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modExpenseReport.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modFacture.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modFicheinter.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modFournisseur.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modHRM.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modMrp.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modPrelevement.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modProjet.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modPropale.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modReceiptPrinter.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modReception.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modStock.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modSupplierProposal.class.php' => ['PhanTypeMismatchArgument'], - 'htdocs/core/modules/modTicket.class.php' => ['PhanTypeMismatchArgument'], 'htdocs/core/modules/movement/doc/pdf_standard_movementstock.modules.php' => ['PhanTypeMismatchArgument'], 'htdocs/core/modules/mrp/doc/pdf_vinci.modules.php' => ['PhanUndeclaredProperty'], 'htdocs/core/modules/mrp/mod_mo_advanced.php' => ['PhanUndeclaredProperty'], diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index 6e5c0fddea4..0a30d577bbb 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -8,7 +8,7 @@ * Copyright (C) 2014 Raphaël Doursenaud * Copyright (C) 2018 Josep Lluís Amador * Copyright (C) 2019-2024 Frédéric France - * Copyright (C) 2024 MDW + * Copyright (C) 2024-2025 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -208,13 +208,13 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it /** * Module last version - * @var string $lastVersion + * @var string */ public $lastVersion = ''; /** * true indicate this module need update - * @var bool $needUpdate + * @var bool */ public $needUpdate = false; @@ -427,7 +427,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it * Another example : array('always'=>array("modBanque", "modFacture", "modProduct", "modCategorie"), 'FR'=>array('modBlockedLog')); * Note: Example in modTakePos: array('always'=>array("modBanque", "modFacture", "modProduct", "modCategorie"), 'FR'=>array('modBlockedLog')); * Example in modAccounting: array("modFacture", "modBanque", "modTax"); - + * * @see $requiredby */ public $depends; @@ -528,7 +528,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it * Enables a module. * Inserts all information into database. * - * @param array}>|array $array_sql SQL requests to be executed when enabling module + * @param array}>|string[] $array_sql SQL requests to be executed when enabling module * @param string $options String with options when disabling module: * - 'noboxes' = Do all actions but do not insert boxes * - 'newboxdefonly' = Do all actions but for boxes, insert def of boxes only and not boxes activation