> On 16/01/2015, at 18:46, Yasuo Ohgaki <yohg...@ohgaki.net> wrote: > > Hi Levi, > > On Wed, Jan 14, 2015 at 6:18 PM, Levi Morrison <le...@php.net> wrote: > >> [1]: https://wiki.php.net/rfc/return_types#vote >> > > I read the RFC quickly and could not find closure syntax example. > > function():array use ($var) {} > > or > > function() use ($var): array {} > > which one will be the syntax? I suppose first one will be the syntax, > though. > > Regards, > > -- > Yasuo Ohgaki > yohg...@ohgaki.net
The tests have it after the use(): https://github.com/php/php-src/pull/997/files#diff-e306c6e99612ba59b00a4fe435b287e5R9 This was discussed in depth a couple of times in the related threads. --- Simon Welsh Admin of http://91carriage.com/ – Specialised SilverStripe hosting -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php