[Discussion] Stricter implicit boolean coercions
| From: | Andreas Leathley | Date: | Mon, 16 May 2022 15:06:13 +0000 |
| Subject: | [Discussion] Stricter implicit boolean coercions | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-117732@lists.php.net to get a copy of this message | ||
Hello Internals,
After the first discussion about this topic
(https://externals.io/message/117608) I have created a preliminary
implementation and an RFC for making implicit boolean type coercions
more strict:
https://wiki.php.net/rfc/stricter_implicit_boolean_coercions
With this email I'm starting the two week discussion period. I welcome
any feedback on it and hope to further iron out the implementation if
needed. I mainly chose the route of introducing a deprecation notice
because it is in line with other RFCs that have similar goals (like the
Deprecate implicit non-integer-compatible float to int conversions RFC),
and it is fairly non-intrusive.
Best regards,
Andreas