Skip to content

Commit

Permalink
ENH Don't use deprecated method (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Sep 19, 2024
1 parent 2713c3a commit 9be525a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tasks/SubsiteCopyPagesTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function run($request)
$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()));
});
}
Expand Down

0 comments on commit 9be525a

Please sign in to comment.