Rev 1101 | Rev 1324 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1101 | Rev 1114 | ||
---|---|---|---|
Line 368... | Line 368... | ||
368 | 368 | ||
369 | /** |
369 | /** |
370 | * JSON Serialize |
370 | * JSON Serialize |
371 | * |
371 | * |
372 | * Will be called, automatically, when json_encode() is called on a BigInteger object. |
372 | * Will be called, automatically, when json_encode() is called on a BigInteger object. |
- | 373 | * |
|
- | 374 | * @return array{hex: string, precision?: int] |
|
373 | */ |
375 | */ |
374 | #[\ReturnTypeWillChange] |
376 | #[\ReturnTypeWillChange] |
375 | public function jsonSerialize() |
377 | public function jsonSerialize() |
376 | { |
378 | { |
377 | $result = ['hex' => $this->toHex(true)]; |
379 | $result = ['hex' => $this->toHex(true)]; |