json.stub.php 502 B

1234567891011121314151617181920212223
  1. <?php
  2. /** @generate-class-entries */
  3. /** @refcount 1 */
  4. function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {}
  5. function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mixed {}
  6. function json_last_error(): int {}
  7. /** @refcount 1 */
  8. function json_last_error_msg(): string {}
  9. interface JsonSerializable
  10. {
  11. /** @tentative-return-type */
  12. public function jsonSerialize(): mixed;
  13. }
  14. class JsonException extends Exception
  15. {
  16. }