[PHP-DEV] Constraints vs. values as types?

2022-04-16 Thread Mike Schinkel
Hi PHPers, As I have been following the discussion about the need for a "true" type to allow documenting that a function should only be able to return true vs. bool which would allow false, and in the past the same argument for false vs. true, it occurs to me that there is another approach to a

Re: [PHP-DEV] NULL Coercion Consistency

2022-04-16 Thread Rowan Tommins
On 8 April 2022 18:34:52 BST, Craig Francis wrote: >I've written a new draft RFC to address the NULL coercion problems: > >https://wiki.php.net/rfc/null_coercion_consistency I'm sympathetic to the general problem you're trying to solve, but I'm not convinced by the argument that this is about c