From 9be525a902f630458a03aa0cabaf680da1c546c2 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 19 Sep 2024 13:42:46 +1200 Subject: [PATCH] ENH Don't use deprecated method (#601) --- src/Tasks/SubsiteCopyPagesTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tasks/SubsiteCopyPagesTask.php b/src/Tasks/SubsiteCopyPagesTask.php index d434f39..e72523e 100644 --- a/src/Tasks/SubsiteCopyPagesTask.php +++ b/src/Tasks/SubsiteCopyPagesTask.php @@ -78,7 +78,7 @@ class SubsiteCopyPagesTask extends BuildTask $childClone->copyVersionToStage('Stage', 'Live'); array_push($stack, [$child->ID, $childClone->ID]); - Deprecation::withNoReplacement(function () use ($child) { + Deprecation::withSuppressedNotice(function () use ($child) { $this->log(sprintf('Copied "%s" (#%d, %s)', $child->Title, $child->ID, $child->Link())); }); }