joelbutcher / socialstream

OAuth for Laravel, simplified.

Home Page:https://docs.socialstream.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] Unknown Middleware

quansho opened this issue · comments

Hi,
How do you guarantee that the response should be exactly Response|RedirectResponse|JsonResponse, I have a BinaryResponse and that I should get an error?

JoelButcher\Socialstream\Http\Middleware\ShareInertiaData::handle(): Return value must be of type Illuminate\Http\Response|Illuminate\Http\RedirectResponse|Illuminate\Http\JsonResponse, Symfony\Component\HttpFoundation\BinaryFileResponse returned

Environment context

  • Socialstream version: All at this time actual versions
  • Jetstream stack: Inertia
  • Laravel version: 9.0
  • PHP version: 8.2

@quansho This was fixed in #263 but I've not yet tagged this, sorry. Will get that released today – thanks 👍