The expression return bcdiv((string)$sa... (string)self::COIN, 8) could return the type null which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
18
}
19
20
/**
21
* @param string $btcAmount
22
* @return int
23
*/
24
7
public function toSatoshis(string $btcAmount): int