From 960646a0242df91cb88ff316bcfe04c5e220bc2c Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Fri, 8 Sep 2023 08:28:36 -0700 Subject: [PATCH] fix test --- .../src/Commands/StanfordNotificationsCommands.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');