Fix Typed property wishthis\User::$language must not be accessed before initialization

This commit is contained in:
grandeljay 2022-12-05 10:43:28 +01:00
parent cae0f22cb6
commit fa3a19382c

View file

@ -95,7 +95,7 @@ class User
public function getLocale(): string
{
return $this->language;
return $this->language ?? DEFAULT_LOCALE;
}
/**