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 Oct 4, 2024
1 parent bd48b04 commit cde12fa
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 cde12fa

Please sign in to comment.