Commit d82f1d40 authored by Taylor Otwell's avatar Taylor Otwell

Facade should support calls with no parameters.

parent 8e5852b7
...@@ -35,6 +35,10 @@ abstract class Facade { ...@@ -35,6 +35,10 @@ abstract class Facade {
{ {
return call_user_func_array(array($class, $method), $parameters); return call_user_func_array(array($class, $method), $parameters);
} }
elseif ($count == 0)
{
return $class->$method();
}
elseif ($count == 1) elseif ($count == 1)
{ {
return $class->$method($parameters[0]); return $class->$method($parameters[0]);
......
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