Skip to content

Commit 62bbd4f

Browse files
committed
test: ArrayHash test compatible with PHP 7.2
1 parent eb56385 commit 62bbd4f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/Utils/ArrayHash.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ test(function () { // numeric fields
126126
foreach ($row as $key => $value) {
127127
$keys[] = $key;
128128
}
129-
Assert::same(['0', '1'], $keys);
129+
if (PHP_VERSION_ID < 70200) {
130+
Assert::same(['0', '1'], $keys);
131+
} else {
132+
Assert::same([0, 1], $keys);
133+
}
130134

131135
Assert::same(1, $row->{0});
132136
Assert::same(1, $row->{'0'});

0 commit comments

Comments
 (0)