Skip to content

Commit

Permalink
ENH Don't emit deprecation warnings for unavoidable API calls (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 15, 2024
1 parent bac08fc commit 4f4a006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function canDelete($member = null)
if ($this->hasMethod('getPage')) {
if ($page = $this->getPage()) {
if ($page->hasExtension(Versioned::class)) {
return $page->canArchive($member);
return Deprecation::withNoReplacement(fn() => $page->canArchive($member));
} else {
return $page->canDelete($member);
}
Expand Down

0 comments on commit 4f4a006

Please sign in to comment.