$object should be optional because it is forbidden in static methods or you will get this error:

    HipHop Warning: getClosure() expects exactly 1 parameter, 0 given in ...