1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-04 02:28:06 +01:00

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() public function __debugInfo()
{ {
return [ $result = [
'value' => '0x' . $this->toHex(true), 'value' => '0x' . $this->toHex(true),
'engine' => basename(static::class) 'engine' => basename(static::class)
]; ];
return $this->precision > 0 ? $result + ['precision' => $this->precision] : $result;
} }
/** /**