Re: [Discussion] Stricter implicit boolean coercions
| From: | Andreas Leathley | Date: | Mon, 16 May 2022 17:12:25 +0000 |
| Subject: | Re: [Discussion] Stricter implicit boolean coercions | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-117737@lists.php.net to get a copy of this message | ||
On 16.05.22 18:24, Guilliam Xavier wrote:
Thanks! Am I right that it only affects *type declarations*, and the
"Unaffected PHP Functionality" section could also mention implicit
boolean evaluation in if, ternary conditional (?:) and logical
operators (!, &&, ||, and, or, xor)?
Yes, that is correct and I just added a note about that in the RFC -
thanks for the suggestion! I also added a part about how to avoid the
deprecation notice, which should also make it clearer / add some context.