Skip to content

Commit bc57920

Browse files
committed
fix undot
1 parent c40694e commit bc57920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Collections/PhpTranslations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public static function toUndot(Translations|array $translations): array
189189
{
190190
$translations = $translations instanceof Translations ? $translations->all() : $translations;
191191

192-
return static::unprepareTranslations(Arr::undot($translations));
192+
return static::unprepareTranslations(Arr::undot($translations)) ?? [];
193193
}
194194

195195
/**

0 commit comments

Comments
 (0)