From: Varun Patil Date: Sun, 3 Dec 2023 04:52:45 +0000 (-0800) Subject: fix(files): allow any throwable in logException X-Git-Tag: v29.0.0beta1~721^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a20556193ca9cad8ea2817f0e5f1c1b15df02011;p=nextcloud-server.git fix(files): allow any throwable in logException If a TypeError is passed here, it in turn causes a TypeError which kills the rendering of the error page. Signed-off-by: Varun Patil --- diff --git a/apps/dav/lib/Files/BrowserErrorPagePlugin.php b/apps/dav/lib/Files/BrowserErrorPagePlugin.php index b3ce591bd4a..eccae8afdd5 100644 --- a/apps/dav/lib/Files/BrowserErrorPagePlugin.php +++ b/apps/dav/lib/Files/BrowserErrorPagePlugin.php @@ -70,9 +70,9 @@ class BrowserErrorPagePlugin extends ServerPlugin { } /** - * @param \Exception $ex + * @param \Throwable $ex */ - public function logException(\Exception $ex) { + public function logException(\Throwable $ex): void { if ($ex instanceof Exception) { $httpCode = $ex->getHTTPCode(); $headers = $ex->getHTTPHeaders($this->server);