Skip to content

Commit 0ddac3a

Browse files
author
Joan He
committed
MAGETWO-89260: Fix Travis build issues
1 parent 73c5b6a commit 0ddac3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup/src/Magento/Setup/Module/I18n/Pack/Generator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public function generate(
7171
$locale = $this->factory->createLocale($locale);
7272
$dictionary = $this->dictionaryLoader->load($dictionaryPath);
7373

74-
if (!count($dictionary->getPhrases())) {
74+
$phrases = $dictionary->getPhrases();
75+
if (!is_array($phrases) || !count($phrases)) {
7576
throw new \UnexpectedValueException('No phrases have been found by the specified path.');
7677
}
7778

0 commit comments

Comments
 (0)