Re: [RFC][Vote] Return Types

From: Date: Fri, 16 Jan 2015 07:53:05 +0000
Subject: Re: [RFC][Vote] Return Types
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-80620@lists.php.net to get a copy of this message
> On 16/01/2015, at 18:46, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > > Hi Levi, > > On Wed, Jan 14, 2015 at 6:18 PM, Levi Morrison <levim@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 > yohgaki@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

« previous php.internals (#80620) next »