Skip to content

Commit

Permalink
adding type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev committed Aug 29, 2016
1 parent 0134ff5 commit 8c65131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPDraft/Model/DataStructureElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function __toString()
{
$value = '<s class="example-value pull-right">no example</s>';
}
else if (self::class === get_class($this->value))
else if (is_object($this->value) && self::class === get_class($this->value))
{
$value = '<div class="sub-struct">'.$this->value.'</div>';
}
Expand Down

0 comments on commit 8c65131

Please sign in to comment.