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

Commit

Permalink
bug #14 Update EasyLogFormatter.php (szepczynski)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

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

Commits
-------

41b6783 Update EasyLogFormatter.php
  • Loading branch information
javiereguiluz committed Jul 27, 2018
2 parents 21c442f + 41b6783 commit edd1231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EasyLogFormatter.php
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 edd1231

Please sign in to comment.