Skip to content

Commit 9fbb411

Browse files
committed
Review parameter names in ext/json
Closes GH-6236
1 parent 7299af0 commit 9fbb411

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ext/json/json.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
/** @generate-function-entries */
44

5-
function json_encode(mixed $value, int $options = 0, int $depth = 512): string|false {}
5+
function json_encode(mixed $value, int $flags = 0, int $depth = 512): string|false {}
66

7-
function json_decode(string $json, ?bool $assoc = null, int $depth = 512, int $options = 0): mixed {}
7+
function json_decode(string $json, ?bool $associative = null, int $depth = 512, int $flags = 0): mixed {}
88

99
function json_last_error(): int {}
1010

ext/json/json_arginfo.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 7dbc9b323b73714227d91cc9566cc3c0c90cd7be */
2+
* Stub hash: 2d1e6c422221ec7efbbd540ee777a5ce2c639943 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_json_encode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
6-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
6+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
77
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
88
ZEND_END_ARG_INFO()
99

1010
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_decode, 0, 1, IS_MIXED, 0)
1111
ZEND_ARG_TYPE_INFO(0, json, IS_STRING, 0)
12-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, assoc, _IS_BOOL, 1, "null")
12+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, associative, _IS_BOOL, 1, "null")
1313
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
14-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
14+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
1515
ZEND_END_ARG_INFO()
1616

1717
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_last_error, 0, 0, IS_LONG, 0)

0 commit comments

Comments
 (0)