Skip to content

Commit 67b5e6b

Browse files
committed
[skip ci] Update UPGRADING for saner array_(sum|product)() RFC
1 parent 3b06618 commit 67b5e6b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ PHP 8.3 UPGRADE NOTES
9696
. password_hash() will now chain the underlying Random\RandomException
9797
as the ValueError’s $previous Exception when salt generation fails.
9898
. proc_open() $command array must now have at least one non empty element.
99+
. array_sum() and array_product() now warn when values in the array cannot be converted to int/float.
100+
Previously arrays and objects where ignored whilst every other value was cast to int.
101+
Moreover, objects that define a numeric cast (e.g. GMP) are now casted instead of ignored.
102+
RFC: https://wiki.php.net/rfc/saner-array-sum-product
99103

100104
========================================
101105
6. New Functions

0 commit comments

Comments
 (0)