Skip to content

Commit

Permalink
Merge branch '5' into 6
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 15, 2024
2 parents 860df12 + 4f4a006 commit 7e542b9
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 7e542b9

Please sign in to comment.