mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 18:48:24 +01:00
Allow string for BigInteger
In real life BigInteger are used to store number too big to be `int` so `string` is actually the natural type to use
This commit is contained in:
parent
cf39b89276
commit
0f77cf3a59
@ -153,7 +153,7 @@ class BigInteger implements \Serializable
|
||||
* If the second parameter - $base - is negative, then it will be assumed that the number's are encoded using
|
||||
* two's compliment. The sole exception to this is -10, which is treated the same as 10 is.
|
||||
*
|
||||
* @param int|BigInteger\Engines\Engine $x Base-10 number or base-$base number if $base set.
|
||||
* @param string|int|BigInteger\Engines\Engine $x Base-10 number or base-$base number if $base set.
|
||||
* @param int $base
|
||||
* @return BigInteger
|
||||
*/
|
||||
@ -861,4 +861,4 @@ class BigInteger implements \Serializable
|
||||
return new static($val);
|
||||
}, $this->value->bitwise_split($split));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user