Skip to content

Commit 5583766

Browse files
committed
Don't coerce NAN values to strings due to warnings
1 parent 1ba1732 commit 5583766

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

tests/bson/bson-decimal128-002.phpt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ MongoDB\BSON\Decimal128 NaN values
44
<?php
55

66
$tests = [
7-
acos(8),
8-
NAN,
97
'nan',
108
'Nan',
119
'NaN',
@@ -24,6 +22,4 @@ NaN
2422
NaN
2523
NaN
2624
NaN
27-
NaN
28-
NaN
2925
===DONE===

tests/bson/bson-decimal128-004.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ MongoDB\BSON\Decimal128 debug handler
44
<?php
55

66
$tests = [
7-
1234.5678,
8-
NAN,
9-
INF,
7+
'1234.5678',
8+
'NAN',
9+
'INF',
1010
];
1111

1212
foreach ($tests as $test) {

tests/bson/bson-decimal128-serialization-002.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ MongoDB\BSON\Decimal128 serialization (__serialize and __unserialize)
66
$tests = [
77
'1234.5678',
88
'-1234.5678',
9-
1234.56e-78,
10-
INF,
11-
NAN,
9+
'1234.56e-78',
10+
'INF',
11+
'NAN',
1212
];
1313

1414
foreach ($tests as $value) {

0 commit comments

Comments
 (0)