Skip to content

Commit

Permalink
ENH Suppress deprecation notices for API we can't avoid
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 10, 2024
1 parent 40e45cd commit 51f456f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tasks/ContentReviewEmails.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51f456f

Please sign in to comment.