Skip to content

Commit

Permalink
Add null check for structbuilder separator
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzipp committed Feb 28, 2019
1 parent 3a1ec22 commit 28d20f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Services/Traits/RenderTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ public function render(): HtmlString
{
$contents = $this->renderContentsArray();

if (StructBuilder::$separator === null) {
return implode('', $contents);
}

return new HtmlString(
implode(StructBuilder::$separator, $contents)
);
Expand Down

0 comments on commit 28d20f2

Please sign in to comment.