ENH Don't use deprecated method (#601)

This commit is contained in:
Guy Sartorelli 2024-09-19 13:42:46 +12:00 committed by GitHub
parent 2713c3a113
commit 9be525a902
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()));
});
}