Skip to content

Commit 659c06d

Browse files
committed
UPGRADING: Move the validation of the rounding mode to Backward Incompatible Changes
1 parent 3d857d5 commit 659c06d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

UPGRADING

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ PHP 8.4 UPGRADE NOTES
2626
Consult sections 2. New Features and 6. New Functions for a list of
2727
newly implemented methods and constants.
2828

29+
- Standard:
30+
. round() now validates the value of the $mode parameter and throws a ValueError
31+
for invalid modes. Previously invalid modes would have been interpreted as
32+
PHP_ROUND_HALF_UP.
33+
2934
========================================
3035
2. New Features
3136
========================================
@@ -58,9 +63,6 @@ PHP 8.4 UPGRADE NOTES
5863
would have resulted in 1.0 instead of the correct result 0.0. Additional
5964
inputs might also be affected and result in different outputs compared to
6065
earlier PHP versions.
61-
. round() now validates the value of the $mode parameter and throws a ValueError
62-
for invalid modes. Previously invalid modes would have been interpreted as
63-
PHP_ROUND_HALF_UP.
6466

6567
========================================
6668
6. New Functions

0 commit comments

Comments
 (0)