From 41b67835bc59722c6501a96cfb00d66ecd1c2942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Szepczy=C5=84ski?= Date: Tue, 19 Jun 2018 11:35:34 +0200 Subject: [PATCH] Update EasyLogFormatter.php Added root namespace for \Throwable. Without that i got: PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to EasyCorp\EasyLog\EasyLogFormatter::formatThrowable() must be an instance of EasyCorp\EasyLog\Throwable, instance of Symfony\Component\Security\Core\Exception\AccessDeniedException given --- src/EasyLogFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EasyLogFormatter.php b/src/EasyLogFormatter.php index 791ccb0..39d17f0 100644 --- a/src/EasyLogFormatter.php +++ b/src/EasyLogFormatter.php @@ -402,7 +402,7 @@ private function formatThrowableObjects(array $array): array return $array; } - private function formatThrowable(Throwable $throwable): array + private function formatThrowable(\Throwable $throwable): array { return [ 'class' => get_class($throwable),