mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-01 05:31:53 +00:00
Merge branch '3.0'
This commit is contained in:
commit
19502c5070
@ -443,6 +443,7 @@ class BigInteger implements \JsonSerializable
|
||||
*
|
||||
* Will be called, automatically, when json_encode() is called on a BigInteger object.
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function jsonSerialize()
|
||||
{
|
||||
$result = ['hex' => $this->toHex(true)];
|
||||
|
@ -376,6 +376,7 @@ abstract class Engine implements \JsonSerializable
|
||||
*
|
||||
* Will be called, automatically, when json_encode() is called on a BigInteger object.
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function jsonSerialize()
|
||||
{
|
||||
$result = ['hex' => $this->toHex(true)];
|
||||
|
@ -31,6 +31,7 @@ abstract class Integer implements \JsonSerializable
|
||||
* PHP Serialize isn't supported because unserializing would require the factory be
|
||||
* serialized as well and that just sounds like too much
|
||||
*/
|
||||
#[\ReturnTypeWillChange]
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return ['hex' => $this->toHex(true)];
|
||||
|
Loading…
Reference in New Issue
Block a user