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

From: Date: Sun, 16 Nov 2025 09:44:28 +0000
Subject: Re: [RFC] [Discussion] Add values() Method to BackedEnum
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-129260@lists.php.net to get a copy of this message
ср, 12 нояб. 2025 г. в 22:26, Niels Dossche <dossche.niels@gmail.com>: > > > 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. > Hi everyone, Based on your feedback, I’ve updated both the PR and the RFC by removing the return type declaration from the interface. Thanks for the input.

« previous php.internals (#129260) next »