Re: [PHP] Binding object instances to static closures

2013-05-31 Thread Nathaniel Higgins
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

[PHP] Binding object instances to static closures

2013-05-31 Thread Nathaniel Higgins
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()