From 64a59b3a4b9ec48b5e0bbb294c046833baee48c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 9 Jan 2023 11:56:43 +0100 Subject: [PATCH 1/2] fix warnings --- htdocs/core/modules/DolibarrModules.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index afc19a12e92..24fa4437a36 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -219,6 +219,19 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it */ public $descriptionlong; + /** + * dictionaries + * + * @var array + */ + public $dictionaries; + + /** + * tabs + * + * @var array + */ + public $tabs; // For exports From baeff3710cc26c30f7f2dd9ecb1032fab5e3f341 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Mon, 9 Jan 2023 12:09:16 +0100 Subject: [PATCH 2/2] Update DolibarrModules.class.php --- htdocs/core/modules/DolibarrModules.class.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index 24fa4437a36..d6baed78c46 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -7,7 +7,7 @@ * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2014 Raphaël Doursenaud * Copyright (C) 2018 Josep Lluís Amador - * Copyright (C) 2019 Frédéric France + * Copyright (C) 2019-2022 Frédéric France * * 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 @@ -180,6 +180,11 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it */ public $error; + /** + * @var string[] Array of Errors messages + */ + public $errors; + /** * @var string Module version * @see http://semver.org @@ -220,16 +225,12 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it public $descriptionlong; /** - * dictionaries - * - * @var array + * @var array dictionaries description */ public $dictionaries; /** - * tabs - * - * @var array + * @var array tabs description */ public $tabs;