Skip to content

Commit

Permalink
Allow string amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodala authored May 20, 2021
1 parent ccad3d1 commit 0bc72ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Type/MoneyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function convertToPHPValue($value, AbstractPlatform $platform)

list($currency, $amount) = explode(' ', $value, 2);

return new Money((int) $amount, new Currency($currency));
return new Money($amount, new Currency($currency));
}

/**
Expand Down

0 comments on commit 0bc72ef

Please sign in to comment.