From 35365cc2a710b7a37f05b15772a335bdbbab0021 Mon Sep 17 00:00:00 2001 From: SilverFire - Dmitry Naumenko Date: Thu, 31 Dec 2020 14:16:05 +0200 Subject: [PATCH] Ensure message is a string --- src/SentryTarget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SentryTarget.php b/src/SentryTarget.php index bfce8c4..52c00e0 100644 --- a/src/SentryTarget.php +++ b/src/SentryTarget.php @@ -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']); }