Fix macros method.

This commit is contained in:
Taylor Otwell 2012-03-21 10:49:09 -05:00
parent 52ca2d35e7
commit 41e066e2ee
1 changed files with 2 additions and 2 deletions

View File

@ -580,9 +580,9 @@ protected static function id($name, $attributes)
*/ */
public static function __callStatic($method, $parameters) public static function __callStatic($method, $parameters)
{ {
if (isset(static::$inputs[$method])) if (isset(static::$macros[$method]))
{ {
return call_user_func_array(static::$inputs[$method], $parameters); return call_user_func_array(static::$macros[$method], $parameters);
} }
throw new \Exception("Method [$method] does not exist."); throw new \Exception("Method [$method] does not exist.");