Skip to content

Commit 0136e8e

Browse files
committed
fix: error when i18n is not set
1 parent ce4c2ea commit 0136e8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Html/Editor/Fields/Tags.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public function escapeLabelHtml(bool $escape): static
4646
*/
4747
public function i18n(array $i18n): static
4848
{
49-
$options = (array) $this->attributes['i18n'];
49+
$options = isset($this->attributes['i18n'])
50+
? (array) $this->attributes['i18n']
51+
: [];
5052

5153
$this->attributes['i18n'] = array_merge($options, $i18n);
5254

0 commit comments

Comments
 (0)