On Wed, May 8, 2019 at 8:15 PM CHU Zhaowei <m...@jhdxr.com> wrote: > Sorry for the one day delay. This RFC has passed with 43 votes in favor and > 1 against. > > > > Thanks & Regards, > > CHU Zhaowei >
I've merged the implementation for this RFC yesterday. However, I would like to propose adding one extra restriction, implemented in https://github.com/php/php-src/pull/4162. Currently, the implementation allows writing things like this: [42 => 0, ...$array] ['a' => 'b', ...$array] I think that with the current behavior of ..., where string keys are forbidden and integer keys are reindexed, it would be best to make these usages illegal as well, at least for the time being. Especially to avoid tying our hands too much when it comes to adding the [$head, ...$tail] = syntax in the future. Nikita