Fix Typed property wishthis\User::$language must not be accessed before initialization
This commit is contained in:
parent
cae0f22cb6
commit
fa3a19382c
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class User
|
||||||
|
|
||||||
public function getLocale(): string
|
public function getLocale(): string
|
||||||
{
|
{
|
||||||
return $this->language;
|
return $this->language ?? DEFAULT_LOCALE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue