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

Commit edd1231

Browse files
committed
bug #14 Update EasyLogFormatter.php (szepczynski)
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
2 parents 21c442f + 41b6783 commit edd1231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)