mirror of
https://github.com/php/php-src.git
synced 2025-01-07 11:34:09 +08:00
Add arginfo stub for JsonSerializable
This commit is contained in:
parent
5050507282
commit
49b98b4d5c
@ -52,12 +52,8 @@ static const zend_function_entry json_functions[] = {
|
||||
/* }}} */
|
||||
|
||||
/* {{{ JsonSerializable methods */
|
||||
ZEND_BEGIN_ARG_INFO(json_serialize_arginfo, 0)
|
||||
/* No arguments */
|
||||
ZEND_END_ARG_INFO();
|
||||
|
||||
static const zend_function_entry json_serializable_interface[] = {
|
||||
PHP_ABSTRACT_ME(JsonSerializable, jsonSerialize, json_serialize_arginfo)
|
||||
PHP_ABSTRACT_ME(JsonSerializable, jsonSerialize, arginfo_class_JsonSerializable_jsonSerialize)
|
||||
PHP_FE_END
|
||||
};
|
||||
/* }}} */
|
||||
|
@ -9,3 +9,8 @@ function json_decode(string $json, ?bool $assoc = null, int $depth = 512, int $o
|
||||
function json_last_error(): int {}
|
||||
|
||||
function json_last_error_msg(): string {}
|
||||
|
||||
interface JsonSerializable
|
||||
{
|
||||
public function jsonSerialize();
|
||||
}
|
||||
|
@ -18,3 +18,6 @@ ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_last_error_msg, 0, 0, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_JsonSerializable_jsonSerialize, 0, 0, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
Loading…
Reference in New Issue
Block a user