Skip to content

Commit

Permalink
fix(translationtool): Use the correct type for extensions
Browse files Browse the repository at this point in the history
A string array is actually expected and not a string.

Fixes: 07db079
  • Loading branch information
tintou committed Sep 9, 2024
1 parent 3ca4785 commit 1a752a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion translations/translationtool/src/translationtool.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private function escape(string $string): string {
return Gettext\Generators\Po::convertString($string);
}

private function hasExtension(string $fileName, string $extensions): bool {
private function hasExtension(string $fileName, array $extensions): bool {
foreach ($extensions as $ext) {
if (substr($fileName, -strlen($ext)) === $ext) {
return true;
Expand Down
Binary file modified translations/translationtool/translationtool.phar
Binary file not shown.

0 comments on commit 1a752a1

Please sign in to comment.