Skip to content

Commit

Permalink
install.php: PHP 8.2 exception handler signature compatibility
Browse files Browse the repository at this point in the history
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: #5072
  • Loading branch information
Deltik committed Sep 11, 2023
1 parent 001799c commit c6401ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c6401ff

Please sign in to comment.