Re: [RFC] [Discussion] Add values() Method to BackedEnum

From: Date: Wed, 12 Nov 2025 19:25:01 +0000
Subject: Re: [RFC] [Discussion] Add values() Method to BackedEnum
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-129213@lists.php.net to get a copy of this message
On 12/11/2025 20:01, Larry Garfield wrote: > Isn't this what the #[ReturnTypeWillChange] attribute was intended for? > > cf: https://wiki.php.net/rfc/internal_method_return_types > > That seems like an option C? It's technically a BC break, but people can just drop an > attribute on it to disable the return type check until 9.0. We did the same for the various > internal methods, as noted in that RFC. Parameter checks are not disabled by that attribute, so the BC problem remains.

« previous php.internals (#129213) next »