diff --git a/Catalogue/CatalogueManager.php b/Catalogue/CatalogueManager.php index 8c9a3135..eb83d500 100644 --- a/Catalogue/CatalogueManager.php +++ b/Catalogue/CatalogueManager.php @@ -58,7 +58,7 @@ public function getMessages(string $locale, string $domain): array } foreach ($this->catalogues[$locale]->all($domain) as $key => $text) { - $messages[] = $this->createMessage($this->catalogues[$locale], $locale, $domain, $key, $text); + $messages[] = $this->createMessage($this->catalogues[$locale], $locale, $domain, $key, $text ?? ''); } return $messages; diff --git a/Command/ExtractCommand.php b/Command/ExtractCommand.php index 16c77dbd..5000c362 100644 --- a/Command/ExtractCommand.php +++ b/Command/ExtractCommand.php @@ -98,8 +98,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int $locales = [$inputLocale]; } - $catalogues = $this->catalogueFetcher->getCatalogues($config, $locales); $this->configureBundleDirs($input, $config); + $catalogues = $this->catalogueFetcher->getCatalogues($config, $locales); $finder = $this->getConfiguredFinder($config); $result = $this->importer->extractToCatalogues($finder, $catalogues, [