diff --git a/public_html/profiles/social/modules/social_features/social_event/src/Plugin/Block/EnrollActionBlock.php b/public_html/profiles/social/modules/social_features/social_event/src/Plugin/Block/EnrollActionBlock.php
index <HASH>..<HASH> 100644
--- a/public_html/profiles/social/modules/social_features/social_event/src/Plugin/Block/EnrollActionBlock.php
+++ b/public_html/profiles/social/modules/social_features/social_event/src/Plugin/Block/EnrollActionBlock.php
@@ -57,7 +57,7 @@ class EnrollActionBlock extends BlockBase {
       'enroll_action_form' => $form
     );
 
-    $text = t('You have enrolled for this event.');
+    $text = (string) t('You have enrolled for this event.');
 
     // Add extra text to
     if ($form['to_enroll_status']['#value'] === '0') {
DS-<I> by jochemvn, Convert object to string

DS-<I> by jochemvn, Convert object to string