On 08/05/2022 11:48, Jordan LeDoux wrote:
This is not the case with null. If you use the unset() function on a variable for example, it will var_dump as null *and* it will pass an is_null() check *and* it will pass a $var === null *and* it will return false for an isset() check. Null loses these qualities if it is cast to *any* scalar.
Fortunately the writing is on the wall for the undefined cases, but that doesn't take away from your argument.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php