From f36e118609cbfaa8886465454c7611f58b761290 Mon Sep 17 00:00:00 2001 From: Art4 Date: Sat, 7 Dec 2024 07:11:28 +0000 Subject: [PATCH] fix non-capturing catch for PHP 7.4 support --- src/Module/Special/HTTPException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Special/HTTPException.php b/src/Module/Special/HTTPException.php index ae7cca3eac..f92d33c18a 100644 --- a/src/Module/Special/HTTPException.php +++ b/src/Module/Special/HTTPException.php @@ -88,7 +88,7 @@ class HTTPException try { $tpl = Renderer::getMarkupTemplate('http_status.tpl'); $content = Renderer::replaceMacros($tpl, $vars); - } catch (Throwable) { + } catch (Throwable $th) { $vars = array_map('htmlentities', $vars); $content = "

{$vars['$title']}

{$vars['$message']}

"; if ($this->isSiteAdmin) {