Join Nostr
2025-06-09 14:54:13 UTC
in reply to

Gina Peter Banyard on Nostr: nprofile1q…vutw6 nprofile1q…4gd4r this not new. PHP has multiple type juggling ...

this not new. PHP has multiple type juggling contexts.
You are trying to find consistency between the "function" type juggling context, which is one of the most strictest (and is the only one affected by the strict_types declare) and the comparison type juggling context, which is one of the most non-sensical one as it will coerce objects to int and emit notices.

I have a draft RFC looking into comparisons but it's all over the place & finding reasonable semantics is hard