NEW #22848 FIx phpstan alert

This commit is contained in:
Florent Poinsaut 2025-02-14 15:46:40 +01:00
parent c8cc7884e4
commit fa512af180
3 changed files with 8 additions and 8 deletions

View File

@ -1484,7 +1484,7 @@ if ($type == Categorie::TYPE_ORDER) {
if ($permission) {
print "<a href= '".$_SERVER['PHP_SELF']."?".(empty($socid) ? 'id' : 'socid')."=".$object->id."&amp;type=".$typeid."&amp;removeelem=".$order->id."'>";
print $langs->trans("DeleteFromCat");
print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', false, 0, 0, '', 'paddingleft');
print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft');
print "</a>";
}
print "</tr>\n";

View File

@ -2173,7 +2173,7 @@ if ($action == 'create' && $usercancreate) {
print '<tr><td>'.$langs->trans("Categories").'</td><td colspan="3">';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_ORDER, '', 'parent', 64, 0, 1);
$arrayselected = GETPOST('categories', 'array');
print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, '', 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
print img_picto('', 'category').$form->multiselectarray('categories', $cate_arbo, $arrayselected, 0, 0, 'quatrevingtpercent widthcentpercentminusx', 0, 0);
print "</td></tr>";
}

View File

@ -665,12 +665,12 @@ class modCategorie extends DolibarrModules
/**
* Configure a tag link export
*
* @param int $r Index of import tables
* @param int $cat_id Categorie id
* @param string $class Class of the linked object
* @param string $enabled Condition to enable this export
* @param array $permission Permission to export the linked object
* @param array $fields_list Additional fields of the linked object to export
* @param int $r Index of import tables
* @param int $cat_id Categorie id
* @param string $class Class of the linked object
* @param string $enabled Condition to enable this export
* @param array<int,string> $permission Permission to export the linked object
* @param array<string,array<string,string>> $fields_list Additional fields of the linked object to export
*
* @return void
*/