Merge pull request #175 from sparksp/fix/response

Fix Response::of_something
This commit is contained in:
Taylor Otwell 2011-11-22 17:07:55 -08:00
commit 8508f1bb3a
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.");
} }
} }