On 5 Aug 2014, at 17:08, Marco Pivetta <ocram...@gmail.com> wrote: > > On 5 August 2014 18:01, Ralph Schindler <ra...@ralphschindler.com> wrote: > At the risk of stating the obvious, can’t you just use $f->bar->__invoke()? > > >Actually, it was not immediately obvious that __invoke() was a method from > >the docs as it is a side-note and not in the class signature breakout. Oops! > >;) > > >http://php.net/manual/en/class.closure.php > > Interestingly, reflection doesn't even expose it: http://3v4l.org/8Jutn
Side note, but that’s because __invoke on Closure doesn’t actually exist. It’s a method that is created by trying to access it and ceases to exist once called. Freaky, right? -- Andrea Faulds http://ajf.me/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php