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.
- [PHP-DEV] [RFC] [Discussion] Add values() Method to... Mikhail Savin
- Re: [PHP-DEV] [RFC] [Discussion] Add values() ... Valentin Udaltsov
- Re: [PHP-DEV] [RFC] [Discussion] Add value... Mikhail Savin
- Re: [PHP-DEV] [RFC] [Discussion] Add v... Alexandru Pătrănescu
- Re: [PHP-DEV] [RFC] [Discussion] Add v... Derick Rethans
- Re: [PHP-DEV] [RFC] [Discussion] A... Mikhail Savin
- [PHP-DEV] Re: [RFC] [Discussi... Joseph Leedy
- Re: [PHP-DEV] [RFC] [Discussi... Faizan Akram Dar
- Re: [PHP-DEV] [RFC] [Discussi... Larry Garfield
- Re: [PHP-DEV] [RFC] [Disc... Niels Dossche
- Re: [PHP-DEV] [RFC] [... Mikhail Savin
