Skip to content

Cast values during array destructuring #5296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

wol-soft
Copy link

Adds the possibility to cast values while using array or list destructuring expressions.

RFC can be found at: https://wiki.php.net/rfc/typecast_array_desctructuring

@cmb69 cmb69 added the RFC label Mar 25, 2020
@mvorisek
Copy link
Contributor

@wol-soft Do you know why so many down votes on this RFC and what do you think about extending this RFC also to foreach?

@wol-soft
Copy link
Author

Hi @mvorisek as this RFC will be declined it won't be extended. It seems the option to add type checks is preferred by many people (see the secondary vote of the RFC) which is why the RFC will not pass.

@wol-soft
Copy link
Author

The RFC has been declined.

@wol-soft wol-soft closed this Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants