Force typing (phan) for typing checks
This commit is contained in:
parent
58c676a7e1
commit
d0631e60bf
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue