We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c415d5 commit 735b851Copy full SHA for 735b851
Request.php
@@ -1536,7 +1536,7 @@ public function getPreferredLanguage(?array $locales = null): ?string
1536
return $preferredLanguages[0] ?? null;
1537
}
1538
1539
- $locales = array_map($this->formatLocale(...), $locales ?? []);
+ $locales = array_map($this->formatLocale(...), $locales);
1540
if (!$preferredLanguages) {
1541
return $locales[0];
1542
0 commit comments