# [VOTE] Add BackedEnum::values()

- Thread: https://externals.io/message/129770
- Original archive: https://news-web.php.net/php.internals/129770
- Started by Mikhail Savin on 2026-01-18T07:31:26+00:00
- Messages: 6
- RFC: Add values() Method to BackedEnum (Under discussion) — https://externals.io/rfc/add_values_method_to_backed_enum.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #129770 — Mikhail Savin — 2026-01-18T07:31:26+00:00

URL: https://externals.io/message/129770#129770

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

---

## #129772 — Derick Rethans — 2026-01-18T10:58:27+00:00

URL: https://externals.io/message/129770#129772 · In reply to: #129770

>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

---

## #129773 — tim@bastelstu.be — 2026-01-18T11:08:10+00:00

URL: https://externals.io/message/129770#129773 · In reply to: #129770

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:

https://wiki.php.net/rfc/add_values_method_to_backed_enum?do=diff&rev2%5B0%5D=1763285697&rev2%5B1%5D=1768720119&difftype=sidebyside

… 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

---

## #129774 — Mikhail Savin — 2026-01-18T11:09:23+00:00

URL: https://externals.io/message/129770#129774 · In reply to: #129772

вс, 18 янв. 2026 г. в 13:58, Derick Rethans <derick@php.net>:

> On 18 January 2026 07:31:26 GMT, Mikhail Savin <mikhail.d.savin@gmail.com>
> wrote:
> > […]
>
>
> The voting doesn't allow "Abstain", which is now required.
>
> cheers
> Derick


Thank you, Derick, fixed it

---

## #129777 — Mikhail Savin — 2026-01-18T12:01:43+00:00

URL: https://externals.io/message/129770#129777 · In reply to: #129773

вс, 18 янв. 2026 г. в 14:08, Tim Düsterhus <tim@bastelstu.be>:

> Hi Mikhail,
>
> 
> > […]
>
> 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:
>
>
> https://wiki.php.net/rfc/add_values_method_to_backed_enum?do=diff&rev2%5B0%5D=1763285697&rev2%5B1%5D=1768720119&difftype=sidebyside
>
> … 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

---

## #129781 — tim@bastelstu.be — 2026-01-18T14:05:38+00:00

URL: https://externals.io/message/129770#129781 · In reply to: #129777

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
