mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 12:32:45 +00:00
Merge branch '3.0'
This commit is contained in:
commit
ea0a2375d2
@ -405,6 +405,8 @@ class BigInteger implements \JsonSerializable
|
|||||||
* JSON Serialize
|
* JSON Serialize
|
||||||
*
|
*
|
||||||
* 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.
|
||||||
|
*
|
||||||
|
* @return array{hex: string, precision?: int]
|
||||||
*/
|
*/
|
||||||
#[\ReturnTypeWillChange]
|
#[\ReturnTypeWillChange]
|
||||||
public function jsonSerialize(): array
|
public function jsonSerialize(): array
|
||||||
|
@ -363,6 +363,8 @@ abstract class Engine implements \JsonSerializable
|
|||||||
* JSON Serialize
|
* JSON Serialize
|
||||||
*
|
*
|
||||||
* 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.
|
||||||
|
*
|
||||||
|
* @return array{hex: string, precision?: int]
|
||||||
*/
|
*/
|
||||||
#[\ReturnTypeWillChange]
|
#[\ReturnTypeWillChange]
|
||||||
public function jsonSerialize(): array
|
public function jsonSerialize(): array
|
||||||
|
@ -28,6 +28,8 @@ 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
|
||||||
|
*
|
||||||
|
* @return array{hex: string}
|
||||||
*/
|
*/
|
||||||
#[\ReturnTypeWillChange]
|
#[\ReturnTypeWillChange]
|
||||||
public function jsonSerialize(): array
|
public function jsonSerialize(): array
|
||||||
|
Loading…
Reference in New Issue
Block a user