1
0
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:
Nick Liu 2023-09-11 23:11:52 +02:00
parent 001799cb5f
commit c6401ff247
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -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");