Skip to content

Commit 5c85690

Browse files
committed
ensure a string is passed to createMessage
1 parent 7b907e9 commit 5c85690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Catalogue/CatalogueManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getMessages(string $locale, string $domain): array
5858
}
5959

6060
foreach ($this->catalogues[$locale]->all($domain) as $key => $text) {
61-
$messages[] = $this->createMessage($this->catalogues[$locale], $locale, $domain, $key, $text);
61+
$messages[] = $this->createMessage($this->catalogues[$locale], $locale, $domain, $key, $text ?? '');
6262
}
6363

6464
return $messages;

0 commit comments

Comments
 (0)