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 db09634 commit ceb494f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Actions/NotifyUsersWorkflowAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Symbiote\AdvancedWorkflow\Actions;

use SilverStripe\Control\Email\Email;
use SilverStripe\Dev\Deprecation;
use SilverStripe\Forms\HeaderField;
use SilverStripe\Forms\LiteralField;
use SilverStripe\Forms\TextareaField;
Expand Down Expand Up @@ -135,7 +136,7 @@ public function execute(WorkflowInstance $workflow)
}


$view = SSViewer::fromString($this->EmailTemplate);
$view = Deprecation::withSuppressedNotice(fn() => SSViewer::fromString($this->EmailTemplate));
$this->extend('updateView', $view);

foreach ($members as $member) {
Expand Down

0 comments on commit ceb494f

Please sign in to comment.