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 use PhpMyAdmin\Config\Settings
;
12 if (! defined('ROOT_PATH')) {
13 // phpcs:disable PSR1.Files.SideEffects
14 define('ROOT_PATH', dirname(__DIR__
) . DIRECTORY_SEPARATOR
);
18 // phpcs:disable PSR1.Files.SideEffects
19 if (! defined('PHPMYADMIN')) {
20 define('PHPMYADMIN', true);
23 if (! defined('TESTSUITE')) {
24 define('TESTSUITE', true);
29 include_once ROOT_PATH
. 'examples/signon-script.php';
30 require_once ROOT_PATH
. 'libraries/constants.php';
31 require_once AUTOLOAD_FILE
;
33 $settings = new Settings([]);
34 $GLOBALS['cfg'] = $settings->toArray();
35 $GLOBALS['server'] = 0;
37 // phpcs:disable PSR1.Files.SideEffects
38 if (! defined('PMA_PATH_TO_BASEDIR')) {
39 define('PMA_PATH_TO_BASEDIR', '');
44 // for PhpMyAdmin\Plugins\Import\ImportLdi
45 $GLOBALS['plugin_param'] = 'table';