Skip to content

Conversation

@bp1222
Copy link
Contributor

@bp1222 bp1222 commented Feb 22, 2017

Change was proposed, and accepted, via: https://wiki.php.net/rfc/list_reference_assignment

@emilv
Copy link

emilv commented Feb 23, 2017

Neither the RFC nor this PR mentions how this interacts with https://wiki.php.net/rfc/list_keys but your test case in php/php-src#2371 does test for list('one' => &$one, 'two' => $two). Should we add that example? Perhaps ['one' => &$one, 'two' => $two] as well?

@bp1222
Copy link
Contributor Author

bp1222 commented Feb 23, 2017

Yes I can add it to the spec change. Can't believe I forgot to note that in the RFC, it was accounted for during implementation in tests.

@nikic nikic added the RFC label Mar 21, 2017
@bp1222
Copy link
Contributor Author

bp1222 commented Jan 25, 2018

php/php-src#2371 has been merged as php/php-src@6d4de4c. This PR for the langspec is able to be merged at this point to reflect the new syntax.

@cmb69
Copy link
Member

cmb69 commented Aug 29, 2018

Thanks! It occurs to me that #221 should be resolved before merging this PR.

@nikic
Copy link
Member

nikic commented Mar 15, 2019

Merged as ee9565c, together with a tweak to the grammar to add the optional &.

@nikic nikic closed this Mar 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants