From 51f456f82763c4e259a4a43c83c44ddfef99ca49 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 10 Oct 2024 17:11:40 +1300 Subject: [PATCH] ENH Suppress deprecation notices for API we can't avoid --- src/Tasks/ContentReviewEmails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tasks/ContentReviewEmails.php b/src/Tasks/ContentReviewEmails.php index d594e85..4837ff3 100644 --- a/src/Tasks/ContentReviewEmails.php +++ b/src/Tasks/ContentReviewEmails.php @@ -160,7 +160,7 @@ protected function notifyOwner($ownerID, SS_List $pages) */ protected function getEmailBody($config, $variables) { - $template = SSViewer::fromString($config->ReviewBody); + $template = Deprecation::withSuppressedNotice(fn() => SSViewer::fromString($config->ReviewBody)); $value = $template->process(ArrayData::create($variables)); // Cast to HTML