Skip to content

Commit e35af41

Browse files
committed
Fix non null value
1 parent 6e9061d commit e35af41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

classes/Helper.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
class Helper
88
{
9-
static public function getUserLocale(): string
9+
static public function getUserLocale(): ?string
1010
{
1111
$locales = Locale::listAvailable();
1212
foreach (Request::getLanguages() as $requestLang) {
1313
if (array_key_exists($requestLang, $locales)) {
1414
return $requestLang;
1515
}
1616
}
17+
return null;
1718
}
1819

1920
static public function getDomainTld($host): string

0 commit comments

Comments
 (0)