summaryrefslogtreecommitdiff
path: root/ext/json/json.stub.php
blob: 406bd8a87c86936cdb1277f002323946c84ffc62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/** @generate-function-entries */

function json_encode($value, int $options = 0, int $depth = 512): string|false {}

/** @return mixed */
function json_decode(string $json, ?bool $assoc = null, int $depth = 512, int $options = 0) {}

function json_last_error(): int {}

function json_last_error_msg(): string {}

interface JsonSerializable
{
    /** @return mixed */
    public function jsonSerialize();
}