Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit 41b6783

Browse files
authored
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
1 parent 21c442f commit 41b6783

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/EasyLogFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ private function formatThrowableObjects(array $array): array
402402
return $array;
403403
}
404404

405-
private function formatThrowable(Throwable $throwable): array
405+
private function formatThrowable(\Throwable $throwable): array
406406
{
407407
return [
408408
'class' => get_class($throwable),

0 commit comments

Comments
 (0)