Skip to content

Commit 3e62f69

Browse files
committed
Zend: remove unused scope parameter of add_intersection_type()
1 parent cccc548 commit 3e62f69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_compile.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ static zend_string *resolve_class_name(zend_string *name, const zend_class_entry
14171417
}
14181418

14191419
static zend_string *add_intersection_type(zend_string *str,
1420-
const zend_type_list *intersection_type_list, zend_class_entry *scope,
1420+
const zend_type_list *intersection_type_list,
14211421
bool is_bracketed)
14221422
{
14231423
const zend_type *single_type;
@@ -1448,13 +1448,13 @@ zend_string *zend_type_to_string_resolved(const zend_type type, zend_class_entry
14481448
/* Pure intersection type */
14491449
if (ZEND_TYPE_IS_INTERSECTION(type)) {
14501450
ZEND_ASSERT(!ZEND_TYPE_IS_UNION(type));
1451-
str = add_intersection_type(str, ZEND_TYPE_LIST(type), scope, /* is_bracketed */ false);
1451+
str = add_intersection_type(str, ZEND_TYPE_LIST(type), /* is_bracketed */ false);
14521452
} else if (ZEND_TYPE_HAS_LIST(type)) {
14531453
/* A union type might not be a list */
14541454
const zend_type *list_type;
14551455
ZEND_TYPE_LIST_FOREACH(ZEND_TYPE_LIST(type), list_type) {
14561456
if (ZEND_TYPE_IS_INTERSECTION(*list_type)) {
1457-
str = add_intersection_type(str, ZEND_TYPE_LIST(*list_type), scope, /* is_bracketed */ true);
1457+
str = add_intersection_type(str, ZEND_TYPE_LIST(*list_type), /* is_bracketed */ true);
14581458
continue;
14591459
}
14601460
ZEND_ASSERT(!ZEND_TYPE_HAS_LIST(*list_type));

0 commit comments

Comments
 (0)