Fix warnings

This commit is contained in:
Laurent Destailleur 2026-01-05 17:52:57 +01:00
parent 05f010a655
commit ec88bf8426
2 changed files with 6 additions and 6 deletions

View file

@ -175,7 +175,7 @@ class BlockedLog
/**
* Array of tracked modules (key => label)
* @var array<string,string>
* @var array<int|string,string>
*/
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

View file

@ -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