diff --git a/modules/stanford_notifications/src/Commands/StanfordNotificationsCommands.php b/modules/stanford_notifications/src/Commands/StanfordNotificationsCommands.php index c29c9412..40b5bd0b 100644 --- a/modules/stanford_notifications/src/Commands/StanfordNotificationsCommands.php +++ b/modules/stanford_notifications/src/Commands/StanfordNotificationsCommands.php @@ -57,7 +57,7 @@ public function addNotification($message, array $options = [ ]; if (!in_array($options['status'], $status_options)) { - throw new UserAbortException(new TranslatableMarkup('Invalid status. Please use one of the options: @options', ['@options' => implode(', ', $status_options)])); + throw new UserAbortException((string) new TranslatableMarkup('Invalid status. Please use one of the options: @options', ['@options' => implode(', ', $status_options)])); } $roles = explode(',', $options['roles']); array_walk($roles, 'trim');