From 46b5822e07af4300c8caef6f077a242ceee40a29 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 15 Aug 2024 16:24:33 +1200 Subject: [PATCH] API Update method signature for CMSEditLink --- src/Models/BaseElement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/BaseElement.php b/src/Models/BaseElement.php index 16513727..6c25ac61 100644 --- a/src/Models/BaseElement.php +++ b/src/Models/BaseElement.php @@ -888,7 +888,7 @@ public function isCMSPreview() * @return null|string * @throws \SilverStripe\ORM\ValidationException */ - public function CMSEditLink($directLink = false) + public function CMSEditLink($directLink = false): ?string { // Allow for repeated calls to be returned from cache if (isset($this->cacheData['cms_edit_link'])) {