Skip to content

Commit dd212ee

Browse files
authored
Issue #58 Remove embarrassing var_dump()
1 parent 8562cf8 commit dd212ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Money/Amount.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function withMajorUnit($amount)
4040
{
4141
if (is_int($amount) || is_float($amount) || (is_string($amount) && preg_match('/^[0-9]*\.[0-9]*$/', $amount))) {
4242
$amount = (float)$amount * pow(10, $this->currency->getDigits());
43-
var_dump(floor($amount)); var_dump(round($amount, 6));
43+
4444
if (floor($amount) != round($amount, 6)) {
4545
// Too many decimal digits for the currency.
4646
throw new UnexpectedValueException(sprintf(

0 commit comments

Comments
 (0)