Fix phpstan report

This commit is contained in:
Alejandro Celaya 2025-07-18 08:29:16 +02:00
parent 3318987d63
commit a68300f19a

View File

@ -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];
}