mirror of https://github.com/MISP/MISP
fix: [ECS] Change type from Exception to Throwable
parent
8f6c6b9ef3
commit
5bbdeb0ee6
|
@ -182,10 +182,10 @@ class EcsLog implements CakeLogInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Exception $exception
|
* @param Throwable $exception
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function handleException(Exception $exception)
|
public static function handleException(Throwable $exception)
|
||||||
{
|
{
|
||||||
$code = $exception->getCode();
|
$code = $exception->getCode();
|
||||||
$code = ($code && is_int($code)) ? $code : 1;
|
$code = ($code && is_int($code)) ? $code : 1;
|
||||||
|
|
Loading…
Reference in New Issue