[Composer] Change gofabian/negotiation-middleware dependency requirement to support PHP 8.2 #96
|
@ -165,12 +165,12 @@ class L10n
|
||||||
$foundLang = $language;
|
$foundLang = $language;
|
||||||
}
|
}
|
||||||
if (strtolower($key) == strtolower(str_replace('-', '_', $locale))) {
|
if (strtolower($key) == strtolower(str_replace('-', '_', $locale))) {
|
||||||
$foundLocale = true;
|
$foundLocale = $language;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $foundLocale ? $language : $foundLang ?: $locale;
|
return $foundLocale ?: $foundLang ?: $locale;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue