From d3d85cbcc189f3e2322f656534d093e263b80e2e Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 7 Nov 2019 11:48:02 +0100 Subject: [PATCH] Add UPGRADING note about default object from empty value Fixes bug #75921. [ci skip] --- UPGRADING | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UPGRADING b/UPGRADING index 4edbfaa57b..2a72976178 100644 --- a/UPGRADING +++ b/UPGRADING @@ -42,6 +42,9 @@ PHP 7.4 UPGRADE NOTES with the STREAM_OPTION_READ_BUFFER option. Custom stream wrapper implementations may need to implement the stream_set_option() method to avoid a warning (always returning false is a sufficient implementation). + . The "creating default object from empty value" warning is now consistently + thrown if a falsy value is promoted into an stdClass object. Previously some + cases like `$null->prop[0] = $val` missed this warning. - BCMath: . BCMath functions will now warn if a non well-formed number is passed, such -- 2.50.0