diff --git a/Http/Livewire/Lang/Change.php b/Http/Livewire/Lang/Change.php index 1b83673d..1f596543 100755 --- a/Http/Livewire/Lang/Change.php +++ b/Http/Livewire/Lang/Change.php @@ -33,7 +33,7 @@ public function mount(): void $langs = LaravelLocalization::getSupportedLocales(); unset($langs[$this->lang]); $this->url = Request::getRequestUri(); - $langs = Arr::map($langs, function (array $item, $key) { + $langs = Arr::map($langs, function (array $item, string $key) { $url = LaravelLocalization::getLocalizedURL($key, $this->url, [], true); if (false !== $url) { $url = Str::of($url)->replace(url(''), '')->toString();