From 85530bdcefb8dea98703de3db152319619112663 Mon Sep 17 00:00:00 2001 From: marco76tv Date: Sat, 21 Dec 2024 10:29:37 +0100 Subject: [PATCH] up --- Http/Livewire/Lang/Change.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();