Skip to content

Commit 90ef1c7

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Remove unused scope argument
2 parents a38bad8 + 11d97ae commit 90ef1c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/reflection/php_reflection.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ static zval *get_default_from_recv(zend_op_array *op_array, uint32_t offset) {
609609
return RT_CONSTANT(recv, recv->op2);
610610
}
611611

612-
static int format_default_value(smart_str *str, zval *value, zend_class_entry *scope) {
612+
static int format_default_value(smart_str *str, zval *value) {
613613
if (Z_TYPE_P(value) <= IS_STRING) {
614614
smart_str_append_scalar(str, value, 15);
615615
} else if (Z_TYPE_P(value) == IS_ARRAY) {
@@ -667,7 +667,7 @@ static void _parameter_string(smart_str *str, zend_function *fptr, struct _zend_
667667
zval *default_value = get_default_from_recv((zend_op_array*)fptr, offset);
668668
if (default_value) {
669669
smart_str_appends(str, " = ");
670-
if (format_default_value(str, default_value, fptr->common.scope) == FAILURE) {
670+
if (format_default_value(str, default_value) == FAILURE) {
671671
return;
672672
}
673673
}
@@ -890,7 +890,7 @@ static void _property_string(smart_str *str, zend_property_info *prop, const cha
890890
zval *default_value = property_get_default(prop);
891891
if (!Z_ISUNDEF_P(default_value)) {
892892
smart_str_appends(str, " = ");
893-
if (format_default_value(str, default_value, prop->ce) == FAILURE) {
893+
if (format_default_value(str, default_value) == FAILURE) {
894894
return;
895895
}
896896
}
@@ -6402,7 +6402,7 @@ ZEND_METHOD(ReflectionAttribute, __toString)
64026402
smart_str_appends(&str, " = ");
64036403
}
64046404

6405-
if (format_default_value(&str, &attr->data->args[i].value, NULL) == FAILURE) {
6405+
if (format_default_value(&str, &attr->data->args[i].value) == FAILURE) {
64066406
smart_str_free(&str);
64076407
RETURN_THROWS();
64086408
}

0 commit comments

Comments
 (0)