Fix Response::of_something() calls

This commit is contained in:
Phill Sparks
2011-11-23 00:47:58 +00:00
parent 837b480231
commit e994dffc51

View File

@@ -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.");
} }
} }