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

From: Date: Thu, 24 Jul 2025 17:47:04 +0000
Subject: Re: [RFC] [VOTE] 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-128218@lists.php.net to get a copy of this message
Hey, On 21.7.2025 14:21:49, Gina P. Banyard wrote:
Hello internals, I have started the vote for my "Deprecate type juggling to and from bool type within the function type juggling context" RFC: https://wiki.php.net/rfc/deprecate-function-bool-type-juggling It will run for two weeks and close on Monday the 4th of August. Best regards, Gina P. Banyard
I'm voting no on this RFC as I think the rejected feature described in the RFC is the way to go (relaxing true and false to allow type coercions). For me, the main purpose of the singleton true/false boolean types is rather being explicit on what's actually stored/returned, rather than not being assignable an integer (e.g. 0 for false). Bob

« previous php.internals (#128218) next »