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

php.internals

Gina P. Banyard

1 year ago
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

Bob Weinand

1 year ago
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

Gina P. Banyard

1 year ago
On Monday, 21 July 2025 at 13:21, Gina P. Banyard <internals@gpb.moe> 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.
Hello internals, I just closed the vote, and the RFC has been declined, with 10 votes in favour and 11 against. (47.6%) Thank you to everyone that has voted and participated in the discussions. Best regards, Gina P. Banyard