From a68300f19af4fe827cc1e47cf296c8dab39f2674 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 18 Jul 2025 08:29:16 +0200 Subject: [PATCH] Fix phpstan report --- module/Core/functions/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/Core/functions/functions.php b/module/Core/functions/functions.php index 72406e6a..dd73758f 100644 --- a/module/Core/functions/functions.php +++ b/module/Core/functions/functions.php @@ -143,6 +143,7 @@ function acceptLanguageToLocales(string $acceptLanguage, float $minQuality = 0): */ function splitLocale(string $locale): array { + /** @var string $lang */ [$lang, $countryCode] = array_pad(explode('-', $locale), length: 2, value: null); return [$lang, $countryCode]; }