Skip to content

Commit

Permalink
ENH Improve type safety to support refactored template layer
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 27, 2024
1 parent 6194844 commit dc43d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ public function MetaComponents()

$tags['title'] = [
'tag' => 'title',
'content' => $this->obj('Title')->forTemplate()
'content' => $this->obj('Title')?->forTemplate()
];

$generator = $this->getGenerator();
Expand Down Expand Up @@ -1601,7 +1601,7 @@ public function MetaTags($includeTitle = true)

$tagString = implode("\n", $tags);
if ($this->ExtraMeta) {
$tagString .= $this->obj('ExtraMeta')->forTemplate();
$tagString .= $this->obj('ExtraMeta')?->forTemplate();
}

$this->extend('updateMetaTags', $tagString);
Expand Down

0 comments on commit dc43d36

Please sign in to comment.