Hi internals,
This starts the voting phase for the RFC “Add BackedEnum::values()”.
RFC: https://wiki.php.net/rfc/add_values_method_to_backed_enum https://wiki.php.net/rfc/add_values_method_to_backed_enum?utm_source=chatgpt.com Discussion thread: https://externals.io/message/129186 https://externals.io/message/129186?utm_source=chatgpt.com Implementation PR: https://github.com/php/php-src/pull/20398
The proposal adds BackedEnum::values() returning a 0-based indexed array of backing values (int|string) in declaration order.
Voting is open until: 2026-02-08 00:00:00 UTC.
Thanks,
Mikhail Savin
Hi internals,
This starts the voting phase for the RFC “Add BackedEnum::values()”.
RFC: https://wiki.php.net/rfc/add_values_method_to_backed_enum
The voting doesn't allow "Abstain", which is now required.
cheers
Derick
вс, 18 янв. 2026 г. в 13:58, Derick Rethans derick@php.net:
Quoted text · 7 lines
On 18 January 2026 07:31:26 GMT, Mikhail Savin mikhail.d.savin@gmail.com wrote:
Hi internals,
This starts the voting phase for the RFC “Add BackedEnum::values()”.
RFC: https://wiki.php.net/rfc/add_values_method_to_backed_enum
The voting doesn't allow "Abstain", which is now required.
cheers
Derick
Thank you, Derick, fixed it
Hi Mikhail,
This starts the voting phase for the RFC “Add BackedEnum::values()”.
The start of the vote is very surprising to me. I did not feel that a 12 email-discussion was sufficient to properly evaluate a long-term plan that stretches until PHP 9.0.
It is also in violation of the policy, which requires the discussion to be recent (the last email in the discussion thread is from 53 days ago, which requires a 7 day cooldown after a restart of the discussion) and also an last call “Intent to Vote” announcement (at least 2 days before the vote) to make sure that the RFC is fresh in the minds of the voters:
https://github.com/php/policies/blob/main/feature-proposals.rst#discussion-phase
I'm also noticing that you made a number of significant changes (including increasing the version number) to the RFC text just today which folks did not yet have the chance to review and discuss before the vote:
… all while there still are “Open Issues” listed in the RFC. These should be resolved before the vote.
I therefore request the vote to be canceled for now and discussion restarted based on the updated version 1.2 of the RFC.
Best regards
Tim Düsterhus
вс, 18 янв. 2026 г. в 14:08, Tim Düsterhus tim@bastelstu.be:
Quoted text · 11 lines
Hi Mikhail,
This starts the voting phase for the RFC “Add BackedEnum::values()”.
The start of the vote is very surprising to me. I did not feel that a 12 email-discussion was sufficient to properly evaluate a long-term plan that stretches until PHP 9.0.
It is also in violation of the policy, which requires the discussion to be recent (the last email in the discussion thread is from 53 days ago, which requires a 7 day cooldown after a restart of the discussion) and also an last call “Intent to Vote” announcement (at least 2 days before the vote) to make sure that the RFC is fresh in the minds of the voters:
https://github.com/php/policies/blob/main/feature-proposals.rst#discussion-phase
I'm also noticing that you made a number of significant changes (including increasing the version number) to the RFC text just today which folks did not yet have the chance to review and discuss before the vote:
… all while there still are “Open Issues” listed in the RFC. These should be resolved before the vote.
I therefore request the vote to be canceled for now and discussion restarted based on the updated version 1.2 of the RFC.
Best regards
Tim Düsterhus
Hi, Tim
Thanks for the detailed feedback
I'll close voting and continue discussion thread then
Hi
Thanks for the detailed feedback
I'll close voting and continue discussion thread then
Thank you. I'm seeing that you updated the category in the RFC list page at https://wiki.php.net/rfc, but didn't actually close the vote on the RFC itself.
As per
https://github.com/php/policies/blob/main/feature-proposals.rst#voting-procedure, you'll also need to update the voting title to invalidate any existing votes.
And within the discussion thread you should then send an email indicating that you updated the RFC to version 1.2 with a short summary of the changes and asking folks to participate with their opinion! After a cool-down period of 14 days and no new discussion you can then send an “Intent to Vote” and open the vote 2-7 days later.
Best regards
Tim Düsterhus