diff --git a/src/LanguageSwitch.php b/src/LanguageSwitch.php index bcef3e9..d8eb001 100755 --- a/src/LanguageSwitch.php +++ b/src/LanguageSwitch.php @@ -318,7 +318,7 @@ public function getCharAvatar(string $locale): string : str($locale)->upper()->toString(); } - public static function trigger($locale) + public static function trigger(string $locale) { session()->put('locale', $locale);