A recoverable error will be thrown once a string key is encountered. Thanks for raising this question, and I've updated the RFC accordingly.
From: Stephen Reay <firstname.lastname@example.org>
Sent: Friday, April 5, 2019 12:40 AM
To: CHU Zhaowei <email@example.com>
Cc: PHP internals <firstname.lastname@example.org>
Subject: Re: [PHP-DEV] [RFC] Spread Operator in Array Expression v0.2
> On 4 Apr 2019, at 21:14, CHU Zhaowei <email@example.com> wrote:
> Hi internals,
> Thanks for the people who joined the discussion of my [RFC: Spread Operator in Array Expression](https://wiki.php.net/rfc/spread_operator_for_array). The biggest change is I have dropped the support for string keys in v0.2 as suggested by CÃ´me, to make the behavior of spread operator consistent. I have also added Q&A to explain the questions I received.
> Thanks & best regards,
> CHU Zhaowei
> PHP Internals - PHP Runtime Development Mailing List To unsubscribe,
> visit: http://www.php.net/unsub.php
Can you clarify what ânot supportedâ means in reference to string keys? What will happen if an array with string keys is used? Does it error/warn, and/or are the keys ignored or skipped?
PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php