Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Jan 3, 2024 · 1 comment

Comments

@eelco2k
Copy link
Contributor

eelco2k commented Jan 3, 2024

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

@eelco2k eelco2k changed the title Phpsa\FilamentAuthentication\Actions\ImpersonateLink::impersonate(): Return value must be of type Livewire\Redirector|Illuminate\Http\RedirectResponse|bool, Livewire\Features\SupportRedirects\Redirector returned 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 Jan 3, 2024
@phpsa
Copy link
Owner

phpsa commented Jan 15, 2024

will investigate this week.

phpsa added a commit that referenced this issue Feb 10, 2024
@phpsa phpsa closed this as completed Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants