Check the type
xxxxxxxxxx
public function some(): string
{
return redirect()->route('to');
}
//Just fixed the issue by removing the : string from my function. Like that:
public function some()
{
return redirect()->route('home');
}