We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a92480 commit 332c108Copy full SHA for 332c108
src/Collections/PhpTranslations.php
@@ -177,7 +177,7 @@ public function only($keys)
177
public static function toDot(array $values): static
178
{
179
return new static(
180
- Arr::dot(static::prepareTranslations($values))
+ Arr::dot(static::prepareTranslations($values) ?? [])
181
);
182
}
183
@@ -189,7 +189,7 @@ public static function toUndot(Translations|array $translations): array
189
190
$translations = $translations instanceof Translations ? $translations->all() : $translations;
191
192
- return static::unprepareTranslations(Arr::undot((array) $translations));
+ return static::unprepareTranslations(Arr::undot($translations));
193
194
195
/**
0 commit comments