Skip to content

Commit 4fab138

Browse files
jorgsowabonifacy
authored andcommitted
Undeprecate the constants
1 parent 4da4dfd commit 4fab138

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

NEWS

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ FTP:
1717

1818
Intl:
1919
. Added IntlDateFormatter::PATTERN constant. (David Carlier)
20-
. Deprecated constants ROUND_DOWN and ROUND_UP for the consistency with new
21-
rounding modes. Added instead aliases ROUND_TOWARD_ZERO and
22-
ROUND_AWAY_FROM_ZERO. (Jorg Sowa)
20+
. Created aliases ROUND_TOWARD_ZERO and ROUND_AWAY_FROM_ZERO for constants
21+
ROUND_DOWN and ROUND_UP. (Jorg Sowa)
2322

2423
Opcache:
2524
. Added large shared segments support for FreeBSD. (David Carlier)

ext/intl/tests/formatter/rounding_modes.phpt

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
IntlBreakIterator: clone handler
2+
NumberFormatter: rounding modes
33
--EXTENSIONS--
44
intl
55
--FILE--
@@ -22,20 +22,12 @@ var_dump(NumberFormatter::ROUND_UP === NumberFormatter::ROUND_AWAY_FROM_ZERO);
2222
--EXPECTF--
2323
int(0)
2424
int(1)
25-
26-
Deprecated: Constant NumberFormatter::ROUND_DOWN is deprecated in %s
2725
int(2)
2826
int(2)
29-
30-
Deprecated: Constant NumberFormatter::ROUND_UP is deprecated in %s
3127
int(3)
3228
int(3)
3329
int(4)
3430
int(5)
3531
int(6)
36-
37-
Deprecated: Constant NumberFormatter::ROUND_DOWN is deprecated in %s
3832
bool(true)
39-
40-
Deprecated: Constant NumberFormatter::ROUND_UP is deprecated in %s
41-
bool(true)
33+
bool(true)

0 commit comments

Comments
 (0)