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,
|
bool $fatal = false,
|
||||||
string $extra = ''
|
string $extra = ''
|
||||||
): void {
|
): void {
|
||||||
|
/** @var ErrorHandler $error_handler */
|
||||||
|
global $error_handler;
|
||||||
|
|
||||||
/* Gettext does not have to be loaded yet here */
|
/* Gettext does not have to be loaded yet here */
|
||||||
if (function_exists('__')) {
|
if (function_exists('__')) {
|
||||||
$message = __(
|
$message = __(
|
||||||
@ -374,11 +377,11 @@ class Core
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$GLOBALS['error_handler']->addError(
|
$error_handler->addError(
|
||||||
$message,
|
$message,
|
||||||
E_USER_WARNING,
|
E_USER_WARNING,
|
||||||
'',
|
'',
|
||||||
'',
|
0,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user