Fix warning

This commit is contained in:
Laurent Destailleur 2022-12-30 12:15:18 +01:00
parent 988eea0a36
commit 8abde17e95
3 changed files with 6 additions and 5 deletions

View File

@ -299,10 +299,10 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
public $picto; public $picto;
/** /**
* @var string[] List of config pages * @var string[]|string List of config pages (Old modules uses a string. New one must use an array)
* *
* Name of php pages stored into module/admin directory, used to setup module. * Name of php pages stored into module/admin directory, used to setup module.
* e.g.: "admin.php@module" * e.g.: array("setup.php@mymodule")
*/ */
public $config_page_url; public $config_page_url;

View File

@ -541,7 +541,7 @@ if (empty($reshook)) {
if ($result < 0) { if ($result < 0) {
$error++; $error++;
$mesg = 'Failed to get bar code type information '; $mesg = 'Failed to get bar code type information ';
setEventMessages($mesg.$stdobject->error, $mesg.$stdobject->errors, 'errors'); setEventMessages($mesg.$stdobject->error, $stdobject->errors, 'errors');
} }
$object->barcode_type_code = $stdobject->barcode_type_code; $object->barcode_type_code = $stdobject->barcode_type_code;
$object->barcode_type_coder = $stdobject->barcode_type_coder; $object->barcode_type_coder = $stdobject->barcode_type_coder;
@ -780,7 +780,7 @@ if (empty($reshook)) {
if ($result < 0) { if ($result < 0) {
$error++; $error++;
$mesg = 'Failed to get bar code type information '; $mesg = 'Failed to get bar code type information ';
setEventMessages($mesg.$stdobject->error, $mesg.$stdobject->errors, 'errors'); setEventMessages($mesg.$stdobject->error, $stdobject->errors, 'errors');
} }
$object->barcode_type_code = $stdobject->barcode_type_code; $object->barcode_type_code = $stdobject->barcode_type_code;
$object->barcode_type_coder = $stdobject->barcode_type_coder; $object->barcode_type_coder = $stdobject->barcode_type_coder;

View File

@ -61,4 +61,5 @@ exclude:
- name: PhpClassConstantAccessedViaChildClassInspection - name: PhpClassConstantAccessedViaChildClassInspection
- name: RegExpUnnecessaryNonCapturingGroup - name: RegExpUnnecessaryNonCapturingGroup
- name: PhpPregMatchReplaceWithComparisonInspection - name: PhpPregMatchReplaceWithComparisonInspection
- name: PhpArrayWriteIsNotUsedInspection - name: PhpArrayWriteIsNotUsedInspection
- name: PhpUndefinedNamespaceInspection