Skip to content

Commit 86428c6

Browse files
Update phpunit comparators to match function signature
1 parent 58a38d3 commit 86428c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpunit/Comparators/DecimalComparator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ class DecimalComparator extends Comparator
1212
/**
1313
* @inheritDoc
1414
*/
15-
public function accepts($expected, $actual)
15+
public function accepts(mixed $expected, mixed $actual): bool
1616
{
1717
return $expected instanceof Decimal && $actual instanceof Decimal;
1818
}
1919

2020
/**
2121
* @inheritDoc
2222
*/
23-
public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)
23+
public function assertEquals(mixed $expected, mixed $actual, float $delta = 0.0, bool $canonicalize = false, bool $ignoreCase = false): void
2424
{
2525
if (!$expected->equals($actual)) {
2626
throw new ComparisonFailure(

0 commit comments

Comments
 (0)