Le 14 novembre 2021 18:13:18 GMT+01:00, Nikita Popov <nikita....@gmail.com> a 
écrit :
>I have ultimately decided to withdraw this proposal.
>
>Regards,
>Nikita

This is sad to hear, because this is a really big footgun, which has hit me in 
the past. I ended up adding a codestyle rule forcing byref foreach to be 
followed by an unset to avoid this.

I understand making a special case for one syntax and not the other is 
unsatisfying but I was hoping for an other outcome.


Côme

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to