3 * Bootstrap file for psalm
5 * The checks for defined are because psalm --alter can use this file multiple times
8 declare(strict_types
=1);
10 if (! defined('ROOT_PATH')) {
11 // phpcs:disable PSR1.Files.SideEffects
12 define('ROOT_PATH', dirname(__DIR__
) . DIRECTORY_SEPARATOR
);
16 if (! defined('TEST_PATH')) {
17 // phpcs:disable PSR1.Files.SideEffects
18 define('TEST_PATH', dirname(__DIR__
) . DIRECTORY_SEPARATOR
);
22 // phpcs:disable PSR1.Files.SideEffects
23 if (! defined('PHPMYADMIN')) {
24 define('PHPMYADMIN', true);
27 if (! defined('TESTSUITE')) {
28 define('TESTSUITE', true);
33 include_once ROOT_PATH
. 'examples/signon-script.php';
34 require_once ROOT_PATH
. 'app/constants.php';
35 require_once AUTOLOAD_FILE
;
37 $GLOBALS['server'] = 0;
39 // phpcs:disable PSR1.Files.SideEffects
40 if (! defined('PMA_PATH_TO_BASEDIR')) {
41 define('PMA_PATH_TO_BASEDIR', '');
46 // for PhpMyAdmin\Plugins\Import\ImportLdi
47 $GLOBALS['plugin_param'] = 'table';