Skip to content

Commit

Permalink
API Update method signature for CMSEditLink
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 15, 2024
1 parent 860df12 commit 46b5822
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 @@ -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'])) {
Expand Down

0 comments on commit 46b5822

Please sign in to comment.