mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix phpstan
This commit is contained in:
parent
99bf3064f1
commit
89121307ac
|
|
@ -34236,30 +34236,6 @@ parameters:
|
|||
count: 1
|
||||
path: ../../scripts/emailings/reset-invalid-emails.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$conf might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 2
|
||||
path: ../../scripts/invoices/rebuild_merge_pdf.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$db might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 3
|
||||
path: ../../scripts/invoices/rebuild_merge_pdf.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$hookmanager might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 1
|
||||
path: ../../scripts/invoices/rebuild_merge_pdf.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$langs might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
count: 2
|
||||
path: ../../scripts/invoices/rebuild_merge_pdf.php
|
||||
|
||||
-
|
||||
message: '#^Variable \$user might not be defined\.$#'
|
||||
identifier: variable.undefined
|
||||
|
|
|
|||
|
|
@ -47,6 +47,12 @@ require_once DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php";
|
|||
require_once DOL_DOCUMENT_ROOT."/core/modules/facture/modules_facture.php";
|
||||
require_once DOL_DOCUMENT_ROOT."/core/lib/date.lib.php";
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/invoice2.lib.php';
|
||||
/**
|
||||
* @var Conf $conf
|
||||
* @var DoliDB $db
|
||||
* @var HookManager $hookmanager
|
||||
* @var Translate $langs
|
||||
*/
|
||||
|
||||
// Load main language strings
|
||||
$langs->load("main");
|
||||
|
|
@ -77,7 +83,7 @@ if (!empty($dolibarr_main_db_readonly)) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
$diroutputpdf = $conf->facture->dir_output.'/temp';
|
||||
$diroutputpdf = $conf->invoice->dir_output.'/temp';
|
||||
$newlangid = 'en_EN'; // To force a new lang id
|
||||
$filter = array();
|
||||
$regenerate = ''; // Ask regenerate (contains name of model to use)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user