Skip to content

Commit d3d85cb

Browse files
committed
Add UPGRADING note about default object from empty value
Fixes bug #75921. [ci skip]
1 parent aed4f6e commit d3d85cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ PHP 7.4 UPGRADE NOTES
4242
with the STREAM_OPTION_READ_BUFFER option. Custom stream wrapper
4343
implementations may need to implement the stream_set_option() method to
4444
avoid a warning (always returning false is a sufficient implementation).
45+
. The "creating default object from empty value" warning is now consistently
46+
thrown if a falsy value is promoted into an stdClass object. Previously some
47+
cases like `$null->prop[0] = $val` missed this warning.
4548

4649
- BCMath:
4750
. BCMath functions will now warn if a non well-formed number is passed, such

0 commit comments

Comments
 (0)