Skip to content

Commit

Permalink
Merge pull request #662 from tintou/master
Browse files Browse the repository at this point in the history
fix(translationtool): Use the correct type for extensions
  • Loading branch information
nickvergessen authored Sep 9, 2024
2 parents 3ca4785 + 2bb19af commit e2b0c7f
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 e2b0c7f

Please sign in to comment.