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 {
{
return call_user_func_array(array($class, $method), $parameters);
}
elseif ($count == 0)
{
return $class->$method();
}
elseif ($count == 1)
{
return $class->$method($parameters[0]);
......@@ -59,4 +63,4 @@ abstract class Facade {
}
class Session extends Facade { public static $resolve = 'laravel.session'; }
class Session extends Facade { public static $resolve = 'laravel.session'; }
\ No newline at end of file
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