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

Commit

Permalink
Update EasyLogFormatter.php
Browse files Browse the repository at this point in the history
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
  • Loading branch information
szepczynski committed Jun 19, 2018
1 parent 21c442f commit 41b6783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EasyLogFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 41b6783

Please sign in to comment.