Remove $sql_query global from PHPStan ignore list

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-05-16 19:17:58 -03:00
parent 1bd73da1d9
commit 4e5bd7cb85
5 changed files with 6 additions and 4 deletions

View File

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

View File

@ -136,6 +136,8 @@ class StructureController extends AbstractController
*/
public function indexAction()
{
global $sql_query;
PageSettings::showGroup('TableStructure');
$checkUserPrivileges = new CheckUserPrivileges($this->dbi);

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: \$(sql_query|export_type|err_url|collation_connection|filename_template|transform_key|cn|goto|token_mismatch|auth_plugin|username|hostname|display_query)#'#Others
- '#Undefined variable: \$(export_type|err_url|collation_connection|filename_template|transform_key|cn|goto|token_mismatch|auth_plugin|username|hostname|display_query)#'#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

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

View File

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