From 2bb19af53ba2e68bc0351f1fd89d465f4cb805d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Mon, 9 Sep 2024 14:44:23 +0200 Subject: [PATCH] fix(translationtool): Use the correct type for extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A string array is actually expected and not a string. Fixes: 07db0795c9d403901ece2ed6612d8627d6fb779e Signed-off-by: Corentin Noël --- .../translationtool/src/translationtool.php | 2 +- .../translationtool/translationtool.phar | Bin 418163 -> 418163 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/translationtool/src/translationtool.php b/translations/translationtool/src/translationtool.php index d6a74bb..4aeca53 100644 --- a/translations/translationtool/src/translationtool.php +++ b/translations/translationtool/src/translationtool.php @@ -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; diff --git a/translations/translationtool/translationtool.phar b/translations/translationtool/translationtool.phar index 8fd3500fdb8ef393b7a4083a6fd6955137ecda4f..04cb934e670d27d91462d111d578629ad2098092 100755 GIT binary patch delta 200 zcmex-Nb>U`$qk1jSRSie{M&p?qJfEpM?zrMW-sXlTAN?G_DZoP78NB{HrFID1Nl$2&}WMpV&VrGzLZfu@tVPs@%V3d+#ZfKaCYG|I8Y-9jr8Eg+oVpL)wT6z1d zG)5q10%B$$X4yU~jdkNMjn`dQOq0HZ95GjDt@<(H?y6TB`#d?s{&AZho7()KAaeyX L0|SG*ldls1NZm%m delta 201 zcmex-Nb>U`$qk1jSPHwI=59VF(ZIywClMIF*-LtX*5=o)JyLANB}JKe>CH6>+iMaS z*Dz|NTBMpKrdlQ%npq^Jq$DP%nWY#drzD#hnVFcFq*z*}7#pQp7^WI;4@hEEVj)_2 z`>ZrZAZ7w$W*}zSJ}ZrN<1dYeZfW5mPrjU#Re1K+Fyri$sgi}q`1wnt1QlM2YaR)S NWM*JsaCh=`0ssLVNA&;z