From 5bbdeb0ee665c492b2118bdff789808ba5bae6ac Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Thu, 21 Mar 2024 12:12:01 +0100 Subject: [PATCH] fix: [ECS] Change type from Exception to Throwable --- app/Plugin/EcsLog/Lib/Log/Engine/EcsLog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Plugin/EcsLog/Lib/Log/Engine/EcsLog.php b/app/Plugin/EcsLog/Lib/Log/Engine/EcsLog.php index 4e08b1eb3..c15e2ae72 100644 --- a/app/Plugin/EcsLog/Lib/Log/Engine/EcsLog.php +++ b/app/Plugin/EcsLog/Lib/Log/Engine/EcsLog.php @@ -182,10 +182,10 @@ class EcsLog implements CakeLogInterface } /** - * @param Exception $exception + * @param Throwable $exception * @return void */ - public static function handleException(Exception $exception) + public static function handleException(Throwable $exception) { $code = $exception->getCode(); $code = ($code && is_int($code)) ? $code : 1;