diff --git a/src/Service/InternalNotificationSender.php b/src/Service/InternalNotificationSender.php index 9ea4ac6..a838f79 100644 --- a/src/Service/InternalNotificationSender.php +++ b/src/Service/InternalNotificationSender.php @@ -73,7 +73,7 @@ public function sendToUser($notification, $context, $user, $data) $body = $message; } - $context = array_merge([ + $contextData = array_merge([ 'ClassName' => get_class($context), 'ID' => $context->ID, 'Link' => $context->hasMethod('Link') ? $context->Link() : '' @@ -87,7 +87,7 @@ public function sendToUser($notification, $context, $user, $data) 'SentOn' => date('Y-m-d H:i:s'), 'SourceObjectID' => $context->ID, 'SourceNotificationID' => $notification->ID, - 'Context' => $context + 'Context' => $contextData ]); $notice->write();