Force typing (phan) for typing checks

This commit is contained in:
MDW 2024-03-24 21:37:18 +01:00
parent 58c676a7e1
commit d0631e60bf
No known key found for this signature in database

View file

@ -346,6 +346,7 @@ class Contrat extends CommonObject
}
$obj = new $classname();
'@phan-var-force CommonNumRefGenerator $obj';
$numref = $obj->getNextValue($soc, $this);
if ($numref != "") {
@ -1064,6 +1065,7 @@ class Contrat extends CommonObject
$result = dol_include_once('/core/modules/contract/'.$module.'.php');
if ($result > 0) {
$modCodeContract = new $module();
'@phan-var-force CommonNumRefGenerator $modCodeContrat';
if (!empty($modCodeContract->code_auto)) {
// Force the ref to a draft value if numbering module is an automatic numbering
@ -2686,6 +2688,7 @@ class Contrat extends CommonObject
require_once DOL_DOCUMENT_ROOT."/core/modules/contract/" . getDolGlobalString('CONTRACT_ADDON').'.php';
$obj = getDolGlobalString('CONTRACT_ADDON');
$modContract = new $obj();
'@phan-var-force CommonNumRefGenerator $modContrat';
$clonedObj->ref = $modContract->getNextValue($objsoc, $clonedObj);
// get extrafields so they will be clone