Skip to content

Commit

Permalink
casting message to string
Browse files Browse the repository at this point in the history
That way it can handle Exception type records and cast its message
  • Loading branch information
JeanBaptisteRenard authored Nov 16, 2023
1 parent 9246155 commit 8a1d958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function log($level, $message, array $context = []): void

$record = [
'level' => $level,
'message' => $message,
'message' => (string) $message,
'context' => $context,
];

Expand Down

0 comments on commit 8a1d958

Please sign in to comment.