diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php index 89e09907a6e..6136ce996f3 100644 --- a/htdocs/admin/contract.php +++ b/htdocs/admin/contract.php @@ -96,6 +96,7 @@ if ($action == 'updateMask') { require_once $file; $module = new $classname($db); + '@phan-var-force ModelePDFContract $module'; if ($module->write_file($contract, $langs) > 0) { header("Location: ".DOL_URL_ROOT."/document.php?modulepart=contract&file=SPECIMEN.pdf");