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:
parent
84cd7fb4b5
commit
ed48153e7b
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user