Skip to content

Commit fa60f57

Browse files
committed
Drop unused param in zend_parse_arg_class_name_or_obj()
1 parent 4890bf1 commit fa60f57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_API.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_value_error(uint32_t arg_num
13951395

13961396
#define Z_PARAM_CLASS_NAME_OR_OBJ_EX(dest, allow_null) \
13971397
Z_PARAM_PROLOGUE(0, 0); \
1398-
if (UNEXPECTED(!zend_parse_arg_class_name_or_obj(_arg, &dest, _i, allow_null))) { \
1398+
if (UNEXPECTED(!zend_parse_arg_class_name_or_obj(_arg, &dest, allow_null))) { \
13991399
_expected_type = allow_null ? Z_EXPECTED_CLASS_NAME_OR_OBJECT_OR_NULL : Z_EXPECTED_CLASS_NAME_OR_OBJECT; \
14001400
_error_code = ZPP_ERROR_WRONG_ARG; \
14011401
break; \
@@ -1985,7 +1985,7 @@ static zend_always_inline int zend_parse_arg_str_or_long(zval *arg, zend_string
19851985
}
19861986

19871987
static zend_always_inline int zend_parse_arg_class_name_or_obj(
1988-
zval *arg, zend_class_entry **destination, int num, int allow_null
1988+
zval *arg, zend_class_entry **destination, int allow_null
19891989
) {
19901990
if (EXPECTED(Z_TYPE_P(arg) == IS_STRING)) {
19911991
*destination = zend_lookup_class(Z_STR_P(arg));

0 commit comments

Comments
 (0)