Skip to content

Commit

Permalink
Add string cast to last branch
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 28, 2023
1 parent 257f69b commit 7d0de8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function add(MetadataElementContract|string $element): static
return $this->addElement('properties', $element);
}

return $this->addGenericElement($element);
return $this->addGenericElement((string) $element);
}

protected function addElement(string $type, MetadataElementContract $element): static
Expand Down

0 comments on commit 7d0de8c

Please sign in to comment.