Skip to content

Commit 199ef9d

Browse files
authored
Merge pull request #13 from webfactor/3.0
fix LanguageFileService
2 parents 948e880 + ed53b61 commit 199ef9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Services/LanguageFileService.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ private function buildFileContent()
2626
$translation = include $this->naming->getFile();
2727
}
2828

29+
if (!isset($translation)) {
30+
$translation = [];
31+
}
32+
2933
$translation = array_add($translation, $this->naming->getName(), [
3034
'singular' => $this->naming->getSingular(),
3135
'plural' => $this->naming->getPlural(),

0 commit comments

Comments
 (0)