From 430c52b3fe73d9aa3a6736eab57dfdb45d6d9648 Mon Sep 17 00:00:00 2001 From: pataar Date: Sat, 15 Oct 2022 00:06:45 +0200 Subject: [PATCH] fix(exception): use the correct typing for the 'addThrowable' method (#1351) --- src/LaravelDebugbar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LaravelDebugbar.php b/src/LaravelDebugbar.php index 1842aa5d..b3fedc39 100644 --- a/src/LaravelDebugbar.php +++ b/src/LaravelDebugbar.php @@ -34,6 +34,7 @@ use DebugBar\Storage\PdoStorage; use DebugBar\Storage\RedisStorage; use Exception; +use Throwable; use Illuminate\Contracts\Foundation\Application; use Illuminate\Session\SessionManager; use Illuminate\Support\Str; @@ -635,7 +636,7 @@ public function addException(Exception $e) /** * Adds an exception to be profiled in the debug bar * - * @param Exception $e + * @param Throwable $e */ public function addThrowable($e) {