mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +00:00
BigInteger: add precision to __debugInfo
This commit is contained in:
parent
46758107de
commit
824b232b47
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user