e, however, that isn't what I asked. I wanted to either use the
`bindTo` method on a static Closure, or create a non-static Closure in a
static method.
On 31 May 2013 19:25, David Harkness wrote:
> On Fri, May 31, 2013 at 10:54 AM, Nathaniel Higgins wrote:
>
>> Is it possib
Is it possible to bind an instance to a static closure, or to create a
non-static closure inside of a static class method?
This is what I mean...
bindTo($testInstance);
call_user_func($bindedTestClosure);
// should be true
}
}
TestClass::testMethod()
2 matches
Mail list logo