mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
BigInteger: fix deprecation notice
This commit is contained in:
parent
2a3951538b
commit
eb971aaaac
@ -443,6 +443,7 @@ class BigInteger implements \JsonSerializable
|
|||||||
*
|
*
|
||||||
* Will be called, automatically, when json_encode() is called on a BigInteger object.
|
* Will be called, automatically, when json_encode() is called on a BigInteger object.
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function jsonSerialize()
|
public function jsonSerialize()
|
||||||
{
|
{
|
||||||
$result = ['hex' => $this->toHex(true)];
|
$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.
|
* Will be called, automatically, when json_encode() is called on a BigInteger object.
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function jsonSerialize()
|
public function jsonSerialize()
|
||||||
{
|
{
|
||||||
$result = ['hex' => $this->toHex(true)];
|
$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
|
* PHP Serialize isn't supported because unserializing would require the factory be
|
||||||
* serialized as well and that just sounds like too much
|
* serialized as well and that just sounds like too much
|
||||||
*/
|
*/
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function jsonSerialize()
|
public function jsonSerialize()
|
||||||
{
|
{
|
||||||
return ['hex' => $this->toHex(true)];
|
return ['hex' => $this->toHex(true)];
|
||||||
|
Loading…
Reference in New Issue
Block a user