From f9acc1529e0587a0cc3e1fc2b8b3c99ef4129a36 Mon Sep 17 00:00:00 2001 From: Levin Herr Date: Tue, 14 Nov 2023 18:16:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Disable=20creation=20of=20unknow?= =?UTF-8?q?n=20referencable=20exceptions=20(#2136)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Exceptions/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 4cc10dfd9..03765d879 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -55,8 +55,8 @@ public function render($request, Throwable $exception) { && (!in_array(get_class($exception), $this->dontReference) || $exception->getCode() === 500) ) { $name = get_class($exception); - $exception = new Referencable(); - Log::error(sprintf('Reference for above exception of type %s: %s', $name, $exception->reference)); + //ToDo: $exception = new Referencable(); + Log::error(sprintf('Reference for above exception of type %s: %s', $name, 'nonexistent-reference')); } $response = parent::render($request, $exception);