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

From: Date: Thu, 26 Jun 2025 12:04:54 +0000
Subject: Re: [RFC] Deprecate type juggling to and from bool type within the function type juggling context
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-127756@lists.php.net to get a copy of this message
On Monday, 2 June 2025 at 17:11, Gina P. Banyard <internals@gpb.moe> wrote:

> 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

I have updated the RFC to version 0.2 that expands on it and addresses some of the counterarguments
which were said during the discussion.
RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling

If there is no-follow up feedback, I will open the vote for it sometime next week.

Best regards,

Gina P. Banyard


Thread (26 messages)

« previous php.internals (#127756) next »