From c6401ff247824d40ad844043ac8a898124d0958e Mon Sep 17 00:00:00 2001 From: Nick Liu Date: Mon, 11 Sep 2023 23:11:52 +0200 Subject: [PATCH] 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 --- install.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.php b/install.php index dd02bd7ac9..f02fb27a38 100644 --- a/install.php +++ b/install.php @@ -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");