Skip to content

Commit 3b369f8

Browse files
committed
Type-safe for Language::getTranslationsByLanguage()
Signed-off-by: Jack Cherng <[email protected]>
1 parent d442360 commit 3b369f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Utility/Language.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function getTranslationsByLanguage(string $language): array
9696
throw new \Exception("Fail to decode JSON file: {$filePath}");
9797
}
9898

99-
return $decoded;
99+
return (array) $decoded;
100100
}
101101

102102
/**

0 commit comments

Comments
 (0)