mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-03 18:18:05 +01: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