Remove $pmaThemeImage global from ignored errors for PHPStan

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-05-14 15:37:19 -03:00
parent 82a03931d6
commit f19ab9a0b0
8 changed files with 9 additions and 7 deletions

View File

@ -23,7 +23,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $db;
global $db, $pmaThemeImage;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -19,7 +19,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $db;
global $db, $pmaThemeImage;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -31,7 +31,7 @@ if (isset($_POST['format']) && $_POST['format'] == 'ldi') {
define('PMA_ENABLE_LDI', 1);
}
global $db, $table;
global $db, $pmaThemeImage, $table;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -15,7 +15,7 @@ parameters:
- '#Access to an undefined property PhpMyAdmin\\TwoFactor\:\:\$(backend|showSubmit|available|writable)#'
- '#Call to an undefined method PhpMyAdmin\\Navigation\\Nodes\\Node\:\:getHiddenCount#'
- '#Undefined variable: \$array#'
- '#Undefined variable: \$(url_query|text_dir|server|pmaThemeImage|action|sql_query|lang|export_type|err_url|collation_connection|filename_template|transform_key|cn|goto|partitionDetails|token_mismatch|auth_plugin|username|hostname|display_query|where_clause)#'#Others
- '#Undefined variable: \$(url_query|text_dir|server|action|sql_query|lang|export_type|err_url|collation_connection|filename_template|transform_key|cn|goto|partitionDetails|token_mismatch|auth_plugin|username|hostname|display_query|where_clause)#'#Others
- '#Undefined variable: \$(unsaved_values|is_upload)#'#tbl_change.php
- '#Undefined variable: \$max_upload_size#'#tbl_import.php
- '#Undefined variable: \$(repobase|fullrevision|revision|repobranchbase|branch)#'#Footer.php

View File

@ -23,7 +23,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $db;
global $db, $pmaThemeImage;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -23,7 +23,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $cfg;
global $cfg, $pmaThemeImage;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -15,7 +15,7 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $db, $table;
global $db, $pmaThemeImage, $table;
require_once ROOT_PATH . 'libraries/common.inc.php';

View File

@ -16,6 +16,8 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
global $pmaThemeImage;
require_once ROOT_PATH . 'libraries/common.inc.php';
//Get some js files needed for Ajax requests