Skip to content

Commit

Permalink
Fix bizarre bug where originalCatalogue is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Warxcell committed Dec 27, 2024
1 parent 43df0d4 commit eac1f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function reset(): void
}

foreach (array_keys($this->catalogues) as $locale) {
$catalogue = $this->catalogues[$locale] = clone $this->originalCatalogues[$locale];
$catalogue = $this->catalogues[$locale] = clone($this->originalCatalogues[$locale] ?? $this->catalogues[$locale]);

$translations = $this->repository->findByLocale($locale);
foreach ($translations as $translation) {
Expand Down

0 comments on commit eac1f85

Please sign in to comment.