Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneld committed Jan 8, 2024
1 parent b2f55f9 commit ddf4607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ protected function extractMessage($message): string
*/
if (is_object($message)) {
if (method_exists($message, 'getmessage')) {
$message = $message->getMessage();
$message = (string)$message->getMessage();
} else if (method_exists($message, 'tostring')) {
$message = $message->toString();
} else if (method_exists($message, '__tostring')) {
Expand All @@ -408,7 +408,7 @@ protected function extractMessage($message): string
} else if (is_array($message)) {
if (isset($message['message'])) {
if (is_scalar($message['message'])) {
$message = $message['message'];
$message = (string)$message['message'];
} else {
$message = var_export($message['message'], true);
}
Expand Down

0 comments on commit ddf4607

Please sign in to comment.