From 74b7fa5546a23fd53ceef284bcaf9f1ab4d2647b Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Fri, 22 Mar 2024 19:07:33 +0100 Subject: [PATCH 1/2] #28 [ODT] fix: remove version attribute and phpmin --- .../doc_gmaoticketdocument_odt.modules.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/modules/gmao/gmaodocuments/gmaoticketdocument/doc_gmaoticketdocument_odt.modules.php b/core/modules/gmao/gmaodocuments/gmaoticketdocument/doc_gmaoticketdocument_odt.modules.php index 94b46a1..1deb155 100644 --- a/core/modules/gmao/gmaodocuments/gmaoticketdocument/doc_gmaoticketdocument_odt.modules.php +++ b/core/modules/gmao/gmaodocuments/gmaoticketdocument/doc_gmaoticketdocument_odt.modules.php @@ -30,17 +30,6 @@ */ class doc_gmaoticketdocument_odt extends SaturneDocumentModel { - /** - * @var array Minimum version of PHP required by module - * e.g.: PHP ≥ 5.5 = array(5, 5) - */ - public $phpmin = [7, 4]; - - /** - * @var string Dolibarr version of the loaded document - */ - public string $version = 'dolibarr'; - /** * @var string Module */ From 103014aebcfab121d494f0b11d8d29ecdb514b52 Mon Sep 17 00:00:00 2001 From: Nicolas Domenech Date: Sat, 13 Jul 2024 12:45:31 +0200 Subject: [PATCH 2/2] #28 [Hook] fix: typage dolibarr 20 --- class/actions_gmao.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/actions_gmao.class.php b/class/actions_gmao.class.php index 48c30c9..9c9b2c5 100644 --- a/class/actions_gmao.class.php +++ b/class/actions_gmao.class.php @@ -47,9 +47,9 @@ class ActionsGmao public array $results = []; /** - * @var string String displayed by executeHook() immediately after return + * @var string|null String displayed by executeHook() immediately after return */ - public string $resprints; + public ?string $resprints; /** * Constructor