mirror of
https://github.com/shlinkio/shlink.git
synced 2025-12-15 14:55:04 -06:00
Fix phpstan report
This commit is contained in:
parent
3318987d63
commit
a68300f19a
@ -143,6 +143,7 @@ function acceptLanguageToLocales(string $acceptLanguage, float $minQuality = 0):
|
|||||||
*/
|
*/
|
||||||
function splitLocale(string $locale): array
|
function splitLocale(string $locale): array
|
||||||
{
|
{
|
||||||
|
/** @var string $lang */
|
||||||
[$lang, $countryCode] = array_pad(explode('-', $locale), length: 2, value: null);
|
[$lang, $countryCode] = array_pad(explode('-', $locale), length: 2, value: null);
|
||||||
return [$lang, $countryCode];
|
return [$lang, $countryCode];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user