Skip to content

Commit

Permalink
UPGRADING: Move the validation of the rounding mode to Backward Incom…
Browse files Browse the repository at this point in the history
…patible Changes
  • Loading branch information
TimWolla committed Sep 22, 2023
1 parent 3d857d5 commit 659c06d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions UPGRADING
Expand Up @@ -26,6 +26,11 @@ PHP 8.4 UPGRADE NOTES
Consult sections 2. New Features and 6. New Functions for a list of
newly implemented methods and constants.

- Standard:
. round() now validates the value of the $mode parameter and throws a ValueError
for invalid modes. Previously invalid modes would have been interpreted as
PHP_ROUND_HALF_UP.

========================================
2. New Features
========================================
Expand Down Expand Up @@ -58,9 +63,6 @@ PHP 8.4 UPGRADE NOTES
would have resulted in 1.0 instead of the correct result 0.0. Additional
inputs might also be affected and result in different outputs compared to
earlier PHP versions.
. round() now validates the value of the $mode parameter and throws a ValueError
for invalid modes. Previously invalid modes would have been interpreted as
PHP_ROUND_HALF_UP.

========================================
6. New Functions
Expand Down

0 comments on commit 659c06d

Please sign in to comment.