-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
RedirectResponse::with()
expects array|string
, true
given
#586
Comments
Hi, Is And the error message is different than the code example you shared. So I'm not sure what the real issue is. But the error message is correct, you can't pass |
RedirectResponse can dynamically forward calls to public function __call($method, $parameters)
{
// ...
if (Str::startsWith($method, 'with')) {
return $this->with(Str::snake(substr($method, 4)), $parameters[0]);
}
static::throwBadMethodCallException($method);
} So |
Ah, didn't know that!
Ok, so it seems this is indeed a bug here. |
RedirectResponse::with()
expects array|string
, true
given
--level
used: 5Description
The following code throws an error:
The text was updated successfully, but these errors were encountered: