formatting fixes, bug fixes and support impl.

This commit is contained in:
Dennis Eichhorn 2021-07-04 18:27:21 +02:00
parent f0c4f22d64
commit 921fa40095

View File

@ -165,7 +165,7 @@ class Tag implements \JsonSerializable, ArrayableInterface
{
if ($title instanceof TagL11n) {
$this->title = $title;
} elseif ($this->title instanceof TagL11n) {
} elseif (isset($this->title) && $this->title instanceof TagL11n) {
$this->title->title = $title;
} else {
$this->title = new TagL11n();