Closed EAWF closed 4 years ago
Explicit “float” type return needs to be changed to “string” instead if converting balance using number_format
Hopefully removing the (float) completely will resolve this? Otherwise, I suppose replacing with (string) will resolve it?
Please revert commit 699a6c67, that is not what I meant. The function has “float” as it’s explicit return type (see the type after “:” in the function declaration)
function getBTCBalance(string $address, int $confirmations): float
Re-arrange and reformat $balance to match output from getBTCInvoice()