Skip to content

Commit

Permalink
Ensure message is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire authored and CookiesEater committed Jan 12, 2021
1 parent 31fa5c5 commit 35365cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SentryTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ public function export()
\Sentry\withScope(function (Scope $scope) use ($text, $level, $data) {
if (is_array($text)) {
if (isset($text['msg'])) {
$data['message'] = $text['msg'];
$data['message'] = (string)$text['msg'];
unset($text['msg']);
}
if (isset($text['message'])) {
$data['message'] = $text['message'];
$data['message'] = (string)$text['message'];
unset($text['message']);
}

Expand Down

0 comments on commit 35365cc

Please sign in to comment.