-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
<?php | ||
// Example to use PHPStan | ||
// cd git/dolibarr | ||
// /usr/bin/php7.2 ../phpstan.phar -l1 analyze htdocs/societe/website.php --memory-limit 2G | ||
|
||
// Defined some constants and load Dolibarr env to reduce PHPStan bootstrap that fails to load a lot of things. | ||
define('DOL_DOCUMENT_ROOT', __DIR__ . '/../../htdocs'); | ||
define('DOL_DATA_ROOT', __DIR__ . '/../../documents'); | ||
define('DOL_URL_ROOT', '/'); | ||
//define('DOL_DOCUMENT_ROOT', __DIR__ . '/../../htdocs'); | ||
//define('DOL_DATA_ROOT', __DIR__ . '/../../documents'); | ||
//define('DOL_URL_ROOT', '/'); | ||
|
||
// Load the main.inc.php file to have functions llx_Header and llx_Footer defined | ||
// Load the main.inc.php file to have functions env defined | ||
if (! defined("NOLOGIN")) define("NOLOGIN", '1'); | ||
global $conf, $langs, $user, $db; | ||
include_once __DIR__ . '/../../htdocs/main.inc.php'; |