From ec88bf842686e8ecebe076402b074f71a6f993a8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 5 Jan 2026 17:52:57 +0100 Subject: [PATCH] Fix warnings --- htdocs/blockedlog/class/blockedlog.class.php | 10 +++++----- htdocs/mrp/tpl/linkedobjectblock.tpl.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/blockedlog/class/blockedlog.class.php b/htdocs/blockedlog/class/blockedlog.class.php index 629e9014c62..d42881a4ee4 100644 --- a/htdocs/blockedlog/class/blockedlog.class.php +++ b/htdocs/blockedlog/class/blockedlog.class.php @@ -175,7 +175,7 @@ class BlockedLog /** * Array of tracked modules (key => label) - * @var array + * @var array */ public $trackedmodules = array(); @@ -206,7 +206,7 @@ class BlockedLog $sep = 0; - $this->trackedmodules['0'] = 'None'; // @phan-suppress-current-line PhanTypeMismatchProperty Phan don't want you assign a key '0'. + $this->trackedmodules[0] = 'None'; if (isModEnabled('takepos')) { $this->trackedmodules['takepos'] = 'TakePOS'; } @@ -537,7 +537,7 @@ class BlockedLog $this->linktype = 'credit_note_of'; $this->linktoref = $invoice->ref; } - //$this->module_source = $invoice->module_source; + //$this->module_source = (string) $invoice->module_source; } } if ($object->element == 'facture') { @@ -549,7 +549,7 @@ class BlockedLog $this->linktype = 'credit_note_of'; $this->linktoref = $invoice->ref; } - $this->module_source = $invoice->module_source; + $this->module_source = (string) $invoice->module_source; } } @@ -1026,7 +1026,7 @@ class BlockedLog } else { if ($object->element == 'cashcontrol') { $this->module_source = (string) $object->posmodule; // Module - $this->pos_source = (string) $object->posnumber; // Terminal + //$this->pos_source = (string) $object->posnumber; // Terminal } // Generic case diff --git a/htdocs/mrp/tpl/linkedobjectblock.tpl.php b/htdocs/mrp/tpl/linkedobjectblock.tpl.php index e3031e46a7a..f35970711bd 100644 --- a/htdocs/mrp/tpl/linkedobjectblock.tpl.php +++ b/htdocs/mrp/tpl/linkedobjectblock.tpl.php @@ -30,7 +30,7 @@ * @var Translate $langs * @var Conf $conf * @var DoliDB $db - * @var Hookmanager $hookmanager + * @var HookManager $hookmanager * @var User $user * * @var CommonObject $object