You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out, that running phpstan threw an error at this part of the error-handling code documented here. I added a pull request to change the documented error-handling code. Feel free to merge it.
Further explanation:
# The command i ran
vendor/bin/phpstan analyse app -c ./vendor/nunomaduro/larastan/extension.neon --level=4 --no-progress --memory-limit=2G
# The errors i got:
------ ---------------------------------------------------------------------------------------------------------------------
Line Exceptions/Handler.php
------ ---------------------------------------------------------------------------------------------------------------------
63 Call to an undefined method Symfony\Component\HttpFoundation\Response::status().
64 Call to an undefined method Symfony\Component\HttpFoundation\Response::status().
64 Method App\Exceptions\Handler::render() should return Illuminate\Http\RedirectResponse|Inertia\Response but returns
Symfony\Component\HttpFoundation\Response.
66 Call to an undefined method Symfony\Component\HttpFoundation\Response::status().
67 Call to an undefined method Symfony\Component\HttpFoundation\Response::status().
73 Method App\Exceptions\Handler::render() should return Illuminate\Http\RedirectResponse|Inertia\Response but returns
Symfony\Component\HttpFoundation\Response.
------ ---------------------------------------------------------------------------------------------------------------------
Change $response->status() to $response->getStatusCode()
I found out, that running phpstan threw an error at this part of the error-handling code documented here. I added a pull request to change the documented error-handling code. Feel free to merge it.
Further explanation:
Change
$response->status()
to$response->getStatusCode()
The text was updated successfully, but these errors were encountered: