mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16936] Add bootstrap file for psalm
PHPBB3-16936
This commit is contained in:
parent
6d26f20bae
commit
7d7c7d8199
2 changed files with 44 additions and 1 deletions
43
build/psalm_bootstrap.php
Normal file
43
build/psalm_bootstrap.php
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
/**
|
||||
*
|
||||
* This file is part of the phpBB Forum Software package.
|
||||
*
|
||||
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||
*
|
||||
* For full copyright and license information, please see
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
|
||||
define('IN_PHPBB', true);
|
||||
define('PHPBB_ENVIRONMENT', 'test');
|
||||
|
||||
$phpbb_root_path = 'phpBB/';
|
||||
$phpEx = 'php';
|
||||
|
||||
global $table_prefix;
|
||||
require_once $phpbb_root_path . 'includes/startup.php';
|
||||
|
||||
$table_prefix = 'phpbb_';
|
||||
require_once $phpbb_root_path . 'includes/constants.php';
|
||||
require_once $phpbb_root_path . 'phpbb/class_loader.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_acp.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_admin.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_compatibility.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_compress.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_content.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_display.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_mcp.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_messenger.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_module.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_posting.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_transfer.' . $phpEx;
|
||||
require_once $phpbb_root_path . 'includes/functions_user.' . $phpEx;
|
||||
|
||||
$phpbb_class_loader = new \phpbb\class_loader('phpbb\\', $phpbb_root_path . 'phpbb/', "php");
|
||||
$phpbb_class_loader->register();
|
|
@ -3,7 +3,7 @@
|
|||
errorLevel="5"
|
||||
phpVersion="7.3"
|
||||
resolveFromConfigFile="true"
|
||||
autoloader="tests/bootstrap.php"
|
||||
autoloader="build/psalm_bootstrap.php"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="https://getpsalm.org/schema/config"
|
||||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
|
||||
|
|
Loading…
Add table
Reference in a new issue