Compare commits

...

2 Commits

Author SHA1 Message Date
Guy Sartorelli
5f6bd977bb
Merge e279785301 into b985f052cf 2024-09-26 04:52:39 +00:00
Guy Sartorelli
e279785301
ENH Improve type safety to support refactored template layer 2024-09-26 16:42:34 +12:00

View File

@ -1454,7 +1454,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
$tags['title'] = [
'tag' => 'title',
'content' => $this->obj('Title')->forTemplate()
'content' => $this->obj('Title')?->forTemplate()
];
$generator = $this->getGenerator();
@ -1601,7 +1601,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
$tagString = implode("\n", $tags);
if ($this->ExtraMeta) {
$tagString .= $this->obj('ExtraMeta')->forTemplate();
$tagString .= $this->obj('ExtraMeta')?->forTemplate();
}
$this->extend('updateMetaTags', $tagString);