Re: Call closure stored as object property directly without use of temporary variable

From: Date: Sat, 08 Dec 2012 23:27:10 +0000
Subject: Re: Call closure stored as object property directly without use of temporary variable
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-64204@lists.php.net to get a copy of this message
I'm currently working around this problem by assuming that a Closure implements __invoke: $this->someProp->__invoke(); Not really nice, but this works in both 5.3 and 5.4. If the suggestion above could cover also callable and not just Closure then it would be quite interesting to have that. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/

« previous php.internals (#64204) next »