Skip to content

Commit 40e4190

Browse files
Comment out test code that triggers "Deprecated: Implicit conversion from non-compatible float 0.9 to int" with PHP 8.1
1 parent 672768e commit 40e4190

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/end-to-end/regression/GitHub/1337.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
1313
PHPUnit %s by Sebastian Bergmann and contributors.
1414

15-
.. 2 / 2 (100%)
15+
. 1 / 1 (100%)
1616

1717
Time: %s, Memory: %s
1818

19-
OK (2 tests, 2 assertions)
19+
OK (1 test, 1 assertion)

tests/end-to-end/regression/GitHub/1337/Issue1337Test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public function dataProvider()
2323
{
2424
return [
2525
'c:\\' => [true],
26-
0.9 => [true],
26+
// The following is commented out because it no longer works in PHP >= 8.1
27+
//0.9 => [true],
2728
];
2829
}
2930
}

0 commit comments

Comments
 (0)