Commit fcf9cd3c authored by Taylor Otwell's avatar Taylor Otwell

Merge branch 'develop' of github.com:laravel/laravel into develop

parents 1535eca1 8508f1bb
...@@ -316,8 +316,9 @@ class Response { ...@@ -316,8 +316,9 @@ class Response {
{ {
if (strpos($method, 'of_') === 0) if (strpos($method, 'of_') === 0)
{ {
return static::with(substr($method, 3), Arr::get($parameters, 0, array())); return static::of(substr($method, 3), Arr::get($parameters, 0, array()));
} }
throw new \BadMethodCallException("Method [$method] is not defined on the Response class.");
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment