fix phpstan
This commit is contained in:
parent
1afe0047fb
commit
c40567a98c
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ if (!defined("NOHTTPSREDIRECT")) {
|
|||
}
|
||||
|
||||
// Defined some constants and load Dolibarr env to reduce PHPStan bootstrap that fails to load a lot of things.
|
||||
$dolibarr_main_document_root = __DIR__ . '/../../htdocs';
|
||||
define('DOL_DOCUMENT_ROOT', __DIR__ . '/../../htdocs');
|
||||
define('DOL_DATA_ROOT', __DIR__ . '/../../documents');
|
||||
define('DOL_URL_ROOT', '/');
|
||||
|
|
@ -42,6 +43,7 @@ define('MAIN_DB_PREFIX', 'llx_');
|
|||
* @var User $user
|
||||
*/
|
||||
|
||||
global $conf, $db, $hookmanager, $langs, $mysoc, $user;
|
||||
global $conf, $db, $hookmanager, $langs, $mysoc, $user;
|
||||
global $dolibarr_main_document_root;
|
||||
|
||||
// include_once DOL_DOCUMENT_ROOT . '/../../htdocs/main.inc.php';
|
||||
|
|
|
|||
Loading…
Reference in a new issue