phpsa / filament-authentication

MIT License
112 stars 24 forks source link

Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string, Illuminate\Routing\Redirector given, called in ./vendor/laravel/framework/src/Illuminate/Http/Response.php on line 72 #46

Closed eelco2k closed 7 months ago

eelco2k commented 9 months ago

When using the Impersonate Action Link i'm getting this error:

TypeError
PHP 8.2.12
10.39.0
Phpsa\FilamentAuthentication\Actions\ImpersonateLink::impersonate(): Return value must be of type 
Livewire\Redirector|Illuminate\Http\RedirectResponse|bool, Livewire\Features\SupportRedirects\Redirector returned

changing this in ImpersonateLink.php removes the error:

// use Livewire\Redirector;
Livewire\Features\SupportRedirects\Redirector

the other way around, I also get another error (pressing the "Leave" button):

TypeError
PHP 8.2.12
10.39.0
Symfony\Component\HttpFoundation\Response::setContent(): Argument #1 ($content) must be of type ?string, 
Illuminate\Routing\Redirector given, called in ./vendor/laravel/framework/src/Illuminate/Http/Response.php on line 72

I'm using Filament v 3.1.33

phpsa commented 8 months ago

will investigate this week.