BigInteger: add precision to __debugInfo

This commit is contained in:
terrafrost 2022-03-08 20:53:18 -06:00
parent 46758107de
commit 824b232b47

View File

@ -390,10 +390,11 @@ abstract class Engine
*/
public function __debugInfo()
{
return [
$result = [
'value' => '0x' . $this->toHex(true),
'engine' => basename(static::class)
];
return $this->precision > 0 ? $result + ['precision' => $this->precision] : $result;
}
/**