summaryrefslogtreecommitdiff
path: root/ext/json/json.stub.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/json.stub.php')
-rw-r--r--ext/json/json.stub.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/json/json.stub.php b/ext/json/json.stub.php
index a9b5bbf511..bf64f49408 100644
--- a/ext/json/json.stub.php
+++ b/ext/json/json.stub.php
@@ -1,6 +1,9 @@
<?php
-/** @generate-function-entries */
+/**
+ * @generate-function-entries
+ * @generate-class-entries
+ */
function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {}
@@ -15,3 +18,7 @@ interface JsonSerializable
/** @return mixed */
public function jsonSerialize();
}
+
+class JsonException extends Exception
+{
+}