Commit 30c716d7 authored by Thorsten Buss's avatar Thorsten Buss
Browse files

FIX: wrong type returned, so in some cases there shows an Exception on parsing an Amount

parent 8038347e
......@@ -330,7 +330,7 @@ class Money
throw new InvalidArgumentException(sprintf('The string "%s" could not be parsed as money', $string));
}
$units = (float)(@$matches[1] . @$matches[2] . @$matches[3] . '.' . @$matches[4]) * 100;
return round($units);
return (int)round($units);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment