This commit is contained in:
Pierre Rudloff 2020-09-27 15:53:53 +02:00
parent d38b1cd9aa
commit 8d15fbdda2
9 changed files with 25 additions and 21 deletions

View file

@ -34,7 +34,7 @@ class Locale
*
* @param string $locale ISO 15897 code
*/
public function __construct($locale)
public function __construct(string $locale)
{
$parse = AcceptLanguage::parse($locale);
$this->language = $parse[1]['language'];