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

From: Date: Tue, 27 Jan 2026 11:12:58 +0000
Subject: Re: [RFC] Deprecate Fuzzy Type Casts and Allow Stringable in Strict Mode
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-129939@lists.php.net to get a copy of this message
Hi Rob, On Tue, Jan 27, 2026, 4:41 PM Rob > > That being said, I think the more proper solution is to simply remove > strict mode instead of making casts stricter. > Why I use "strong" and not strict. no cast magic, new operators for explicit cast as type, etc. everything else pretty much ends as less "magic" and does not remove the issues. Php was great in the early days, get some numerical string, do some math's, response and everyone was happy to get things done in a few lines of code. That time is somehow over (can still be done but not without some sanity first :) best, -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#129939) next »