fix: [ECS] Change type from Exception to Throwable

pull/9630/head
Jakub Onderka 2024-03-21 12:12:01 +01:00
parent 8f6c6b9ef3
commit 5bbdeb0ee6
1 changed files with 2 additions and 2 deletions

View File

@ -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;