[RFC] Deprecate type juggling to and from bool type within the function type juggling context

From: Date: Mon, 02 Jun 2025 16:11:06 +0000
Subject: [RFC] Deprecate type juggling to and from bool type within the function type juggling context
Groups: php.internals 
Request: Send a blank email to internals+get-127534@lists.php.net to get a copy of this message
Hello internals, This is the first RFC out of a set of type system related RFCs I want to propose for PHP 8.5. It also used the recently enabled Markdown support on the wiki, so there might be a few oddities. The RFC proposes to deprecate implicit type coercions to and from the bool type for other scalar types. This a "weak" mode change only, as when strict_types are enabled none of these coercions can happen. Let me know what you think about it. RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling Best regards, Gina P. Banyard

« previous php.internals (#127534) next »