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 73c5b6a commit 0ddac3aCopy full SHA for 0ddac3a
setup/src/Magento/Setup/Module/I18n/Pack/Generator.php
@@ -71,7 +71,8 @@ public function generate(
71
$locale = $this->factory->createLocale($locale);
72
$dictionary = $this->dictionaryLoader->load($dictionaryPath);
73
74
- if (!count($dictionary->getPhrases())) {
+ $phrases = $dictionary->getPhrases();
75
+ if (!is_array($phrases) || !count($phrases)) {
76
throw new \UnexpectedValueException('No phrases have been found by the specified path.');
77
}
78
0 commit comments