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 6749f5a commit 9789cd9Copy full SHA for 9789cd9
src/Detectors/UrlDetector.php
@@ -20,7 +20,7 @@ public function detect()
20
21
// If supported locales is a simple array like ['en', 'nl']
22
// just return the slug and let Localizer check if it is supported.
23
- if (array_key_exists(0, $locales)) {
+ if (count($locales) === 0 || is_numeric(key($locales))) {
24
return $slug;
25
}
26
0 commit comments