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

/** @return string|false */
function json_encode($value, int $options = 0, int $depth = 512) {}

/** @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
{
    public function jsonSerialize();
}