mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
install.php: PHP 8.2 exception handler signature compatibility
The exception handler parameter has to be of type `Throwable`, but we are remaining compatible with PHP 5.6, which didn't have `Throwable`, so let's fix this by moving the type to the phpDoc block. Fixes: https://github.com/e107inc/e107/issues/5072
This commit is contained in:
parent
001799cb5f
commit
c6401ff247
@ -48,7 +48,11 @@ class installLog
|
||||
const logFile = "e107Install.log";
|
||||
|
||||
|
||||
static function exceptionHandler(Exception $exception)
|
||||
/**
|
||||
* @param Throwable $exception
|
||||
* @return void
|
||||
*/
|
||||
static function exceptionHandler($exception)
|
||||
{
|
||||
$message = $exception->getMessage();
|
||||
self::add($message, "error");
|
||||
|
Loading…
x
Reference in New Issue
Block a user