Fix Uncaught TypeError: Argument 4 passed to PhpMyAdmin\ErrorHandler::addError() must be of the type int

Uncaught TypeError: Argument 4 passed to PhpMyAdmin\ErrorHandler::addError() must be of the type int

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-02-09 16:23:56 +01:00
parent 84cd7fb4b5
commit ed48153e7b
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -352,6 +352,9 @@ class Core
bool $fatal = false,
string $extra = ''
): void {
/** @var ErrorHandler $error_handler */
global $error_handler;
/* Gettext does not have to be loaded yet here */
if (function_exists('__')) {
$message = __(
@ -374,11 +377,11 @@ class Core
return;
}
$GLOBALS['error_handler']->addError(
$error_handler->addError(
$message,
E_USER_WARNING,
'',
'',
0,
false
);
}