Cast to string.

This commit is contained in:
James Cole
2024-02-01 05:44:41 +01:00
parent 9763f9f922
commit 36d54c3fac

View File

@@ -536,7 +536,7 @@ trait TransactionValidation
if ('' === $transaction['foreign_amount']) {
return false;
}
if (0 === bccomp('0', $transaction['foreign_amount'])) {
if (0 === bccomp('0', (string) $transaction['foreign_amount'])) {
return false;
}