NULL Coercion Consistency

From: Date: Fri, 08 Apr 2022 17:34:52 +0000
Subject: NULL Coercion Consistency
Groups: php.internals 
Request: Send a blank email to internals+get-117501@lists.php.net to get a copy of this message
Hi, I've written a new draft RFC to address the NULL coercion problems: https://wiki.php.net/rfc/null_coercion_consistency This is due to the result of the Allow NULL quiz: https://quiz.craigfrancis.co.uk/ 14 votes for Fatal Type Errors irrespective of strict_types=1; 13 votes for NULL coercion when not using strict_types=1; 8 votes to update some parameters to allow NULL; I appreciate some want to force strict type checking on everyone, but I want to make sure we have this properly documented, with names, and explanations. Breaking changes should be justified - if they aren't, they only make upgrading difficult and frustrating (bad for security). Craig

« previous php.internals (#117501) next »