Skip to content

Commit 35365cc

Browse files
SilverFireCookiesEater
authored andcommitted
Ensure message is a string
1 parent 31fa5c5 commit 35365cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SentryTarget.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ public function export()
118118
\Sentry\withScope(function (Scope $scope) use ($text, $level, $data) {
119119
if (is_array($text)) {
120120
if (isset($text['msg'])) {
121-
$data['message'] = $text['msg'];
121+
$data['message'] = (string)$text['msg'];
122122
unset($text['msg']);
123123
}
124124
if (isset($text['message'])) {
125-
$data['message'] = $text['message'];
125+
$data['message'] = (string)$text['message'];
126126
unset($text['message']);
127127
}
128128

0 commit comments

Comments
 (0)