On Fri, Jan 23, 2026, at 4:48 AM, Alexandre Daubois wrote:
> Hello everyone,
>
> Before going further with our already under discussion RFC about
> nullable casts, Nicolas Grekas and I would like to present this new
> RFC about deprecating fuzzy casts, and adding support for Stringable
> in string parameters when using strict mode.
>
> RFC: https://wiki.php.net/rfc/deprecate-fuzzy-casts
>
> Thanks,
>
> — Alexandre Daubois

1. This really feels like two separate RFCs.  I'd rather see them as two 
separate RFCs than one mixed RFC.

2. I tend to agree with other commenters that we should leave the existing 
casts alone, and instead add a new, more reasonable type conversion operators 
(for some definition of reasonable).  

3. Unlike the other commenters, I am 100% in favor of allowing `string` to 
accept Stringable in strict mode.  Strict mode basically broke Stringable, and 
that's been an annoyance for a long time.  I know some feel that Stringable is 
always and forever a bad thing, amen, but I don't agree.  It has ample valid 
use cases, even if it can be abused.  I want my Stringable objects back! :-)

--Larry Garfield

Reply via email to