File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Translator extends BaseTranslator implements TranslatorInterface
2020 public function loadTranslations ($ translations )
2121 {
2222 if (is_object ($ translations ) && $ translations instanceof Translations) {
23- $ translations = PhpArray::generate ($ translations );
23+ $ translations = PhpArray::generate ($ translations, [ ' includeHeaders ' => false ] );
2424 } elseif (is_string ($ translations ) && is_file ($ translations )) {
2525 $ translations = include $ translations ;
2626 } elseif (!is_array ($ translations )) {
Original file line number Diff line number Diff line change @@ -262,8 +262,6 @@ public function testHeaders()
262262 $ mo = (new Translator ())->loadTranslations (static ::get ('po/Mo ' ));
263263 $ array = (new Translator ())->loadTranslations (static ::get ('po/PhpArray ' ));
264264
265- $ this ->assertNotEmpty ($ po ->gettext ('' ));
266- $ this ->assertEquals ($ po ->gettext ('' ), $ mo ->gettext ('' ));
267- $ this ->assertEquals ($ po ->gettext ('' ), $ array ->gettext ('' ));
265+ $ this ->assertEmpty ($ po ->gettext ('' ));
268266 }
269267}
You can’t perform that action at this time.
0 commit comments