Fix Response::of_something() calls

This commit is contained in:
Phill Sparks 2011-11-23 00:47:58 +00:00
parent 837b480231
commit e994dffc51
1 changed files with 3 additions and 2 deletions

View File

@ -316,8 +316,9 @@ public static function __callStatic($method, $parameters)
{ {
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.");
} }
} }