Fix phan error; Currently getExample has different signature defined

into parents
This commit is contained in:
Laurent Destailleur 2024-09-03 17:59:06 +02:00
parent 7e6f98625b
commit c98273fed1
3 changed files with 1 additions and 11 deletions

View File

@ -165,12 +165,4 @@ abstract class CommonNumRefGenerator
}
return $langs->trans("NotAvailable");
}
/**
* Return an example of numbering
*
* @return string Example
*/
abstract public function getExample();
}

View File

@ -129,8 +129,6 @@ abstract class ModeleProductCode extends CommonNumRefGenerator
*/
public function getToolTip($langs, $product, $type)
{
global $conf;
$langs->loadLangs(array("admin", "companies"));
$strikestart = '';

View File

@ -340,7 +340,7 @@ foreach ($dirproduct as $dirroot) {
print '<td>'.$modCodeProduct->info($langs).'</td>'."\n";
print '<td class="nowrap"><span class="opacitymedium">'.$modCodeProduct->getExample($langs).'</span></td>'."\n";
if (getDolGlobalString('PRODUCT_CODEPRODUCT_ADDON') && $conf->global->PRODUCT_CODEPRODUCT_ADDON == $file) {
if (getDolGlobalString('PRODUCT_CODEPRODUCT_ADDON') == $file) {
print '<td class="center">'."\n";
print img_picto($langs->trans("Activated"), 'switch_on');
print "</td>\n";