On Thu, 26 Jun 2025, Gina P. Banyard wrote:

> On Monday, 2 June 2025 at 17:11, Gina P. Banyard <intern...@gpb.moe> wrote:
> 
> > 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.

I am sorry to say, but this RFC seems to be mostly to have a 'purity' 
argument behind it.

The RFC also does not seems to include an analysis 
of the impact.

I can almost guarantee you that this is going to 'break' 
(by a deprecation warning?) a lot of code. Even the changes made for 
symfony seem non-trivial, and easy to get wrong 
(https://github.com/symfony/symfony/pull/60890/files).

But we don't know, as there is no data on this — that's why I feel that 
this is not a mature enough RFC.

cheers,
Derick

Reply via email to