mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02: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:
@@ -48,7 +48,11 @@ class installLog
|
|||||||
const logFile = "e107Install.log";
|
const logFile = "e107Install.log";
|
||||||
|
|
||||||
|
|
||||||
static function exceptionHandler(Exception $exception)
|
/**
|
||||||
|
* @param Throwable $exception
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
static function exceptionHandler($exception)
|
||||||
{
|
{
|
||||||
$message = $exception->getMessage();
|
$message = $exception->getMessage();
|
||||||
self::add($message, "error");
|
self::add($message, "error");
|
||||||
|
Reference in New Issue
Block a user