-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Update method signature for CMSEditLink #1236
API Update method signature for CMSEditLink #1236
Conversation
46b5822
to
e8b061b
Compare
@@ -68,7 +68,7 @@ class BlogPost extends DataObject | |||
{ | |||
// ... | |||
|
|||
public function CMSEditLink() | |||
public function CMSEditLink(): ?string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function CMSEditLink(): ?string | |
public function getCMSEditLink(): ?string |
src/Models/BaseElement.php
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function CMSEditLink($directLink = false): ?string | |
public function getCMSEditLink($directLink = false): ?string |
@@ -27,7 +27,7 @@ class TestDataObjectWithCMSEditLink extends DataObject implements TestOnly | |||
'ElementalArea', | |||
]; | |||
|
|||
public function CMSEditLink() | |||
public function CMSEditLink(): ?string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function CMSEditLink(): ?string | |
public function getCMSEditLink(): ?string |
@@ -19,7 +19,7 @@ public function getMimeType() | |||
return null; | |||
} | |||
|
|||
public function CMSEditLink() | |||
public function CMSEditLink(): ?string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function CMSEditLink(): ?string | |
public function getCMSEditLink(): ?string |
4342588
to
c620bc6
Compare
c620bc6
to
b0acd41
Compare
Relies on changes made in silverstripe/silverstripe-framework#11338
Issue