Skip to content

Commit 0e3bc44

Browse files
committed
Remove dead code.
1 parent b075a65 commit 0e3bc44

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Decimal.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,6 @@ public function mod(self|string|int $value, ?int $scale = null): static
463463
if ($scale === null) {
464464
$scale = $this->scale();
465465
}
466-
if (version_compare(PHP_VERSION, '7.2') < 0) {
467-
return new static(bcmod($this, (string)$value));
468-
}
469466

470467
return new static(bcmod($this, (string)$value, $scale));
471468
}

tests/DecimalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ public function testMultiplyLegacy($a, $b, ?int $scale, string $expected): void
891891
public static function multiplicationLegacyProvider(): array
892892
{
893893
return [
894-
['0', '0', 3, version_compare(PHP_VERSION, '7.3') < 0 ? '0' : '0.000'],
894+
['0', '0', 3, '0.000'],
895895
];
896896
}
897897

0 commit comments

Comments
 (0)