Re: [RFC] Deprecate Fuzzy Type Casts and Allow Stringable in Strict Mode

From: Date: Mon, 26 Jan 2026 08:45:58 +0000
Subject: Re: [RFC] Deprecate Fuzzy Type Casts and Allow Stringable in Strict Mode
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-129927@lists.php.net to get a copy of this message
Hello Giovanni, Le ven. 23 janv. 2026 à 18:33, Giovanni Giacobbi <giovanni@giacobbi.net> a écrit : > Your interpretation of lossy seems completely arbitrary to me. As stated in the RFC: "The proposed fuzzy cast rules align with **existing validation**". None of the rules stated in the RFC are arbitrary, it is an application of what already exists in the core with the validation of function arguments. See https://3v4l.org/WQJPv#vnull for example. However, we agree this deserves to be more emphasized in the RFC. I'll update in this regard. — Alexandre Daubois

« previous php.internals (#129927) next »