Closed webNeat closed 8 years ago
Hello, I am having an issue when currying a function that uses func_get_args. Here is the failing test case:
func_get_args
public function testCurryFunctionUsingFuncGetArgs() { $fn = function() { return implode(', ', func_get_args()); }; $curried = F\curry($fn); $this->assertEquals('foo, bar', $fn('foo', 'bar')); $this->assertEquals('foo, bar', $curried('foo', 'bar')); }
The first assertion goes fine while the second is failling.
Thanks
@webNeat should we close this?
Yes, this is solved 7da718312e13860778fa6f76330f0dd1e4eb2a9d
Hello, I am having an issue when currying a function that uses
func_get_args
. Here is the failing test case:The first assertion goes fine while the second is failling.
Thanks