fix tests

This commit is contained in:
Dennis Eichhorn 2022-12-26 23:12:11 +01:00
parent 3273f39ff0
commit acca610798

View File

@ -127,7 +127,7 @@ final class SalesBillMapper extends BillMapper
->execute()
?->fetch();
return new Money($result === false || $result[1] ?? 0 === 0 ? 0 : (int) (((int) $result[0] ?? 0) / ((int) $result[1] ?? 0)));
return new Money($result === false || $result[1] ?? 0 === 0 ? 0 : (int) (((int) $result[0] ?? 0) / ((int) $result[1] ?? 1)));
}
/**